@@ -44,7 +44,7 @@ public function testConstructorWithAllParameters() {
4444 $ this ->assertInstanceOf ( Property::class, $ property );
4545 $ this ->assertEquals ( new PropertyId ( 'P42 ' ), $ property ->getId () );
4646 $ this ->assertEquals ( new Fingerprint (), $ property ->getFingerprint () );
47- $ this ->assertEquals ( 'string ' , $ property ->getDataTypeId () );
47+ $ this ->assertSame ( 'string ' , $ property ->getDataTypeId () );
4848 $ this ->assertEquals ( new StatementList (), $ property ->getStatements () );
4949 }
5050
@@ -53,7 +53,7 @@ public function testConstructorWithMinimalParameters() {
5353 $ this ->assertInstanceOf ( Property::class, $ property );
5454 $ this ->assertNull ( $ property ->getId () );
5555 $ this ->assertEquals ( new Fingerprint (), $ property ->getFingerprint () );
56- $ this ->assertEquals ( '' , $ property ->getDataTypeId () );
56+ $ this ->assertSame ( '' , $ property ->getDataTypeId () );
5757 $ this ->assertEquals ( new StatementList (), $ property ->getStatements () );
5858 }
5959
@@ -67,15 +67,15 @@ public function testGivenInvalidType_ConstructorThrowsException() {
6767 public function testNewFromType () {
6868 $ property = Property::newFromType ( 'string ' );
6969 $ this ->assertInstanceOf ( Property::class, $ property );
70- $ this ->assertEquals ( 'string ' , $ property ->getDataTypeId () );
70+ $ this ->assertSame ( 'string ' , $ property ->getDataTypeId () );
7171 }
7272
7373 public function testSetAndGetDataTypeId () {
7474 $ property = Property::newFromType ( 'string ' );
7575
7676 foreach ( [ 'string ' , 'foobar ' , 'nyan ' , 'string ' ] as $ typeId ) {
7777 $ property ->setDataTypeId ( $ typeId );
78- $ this ->assertEquals ( $ typeId , $ property ->getDataTypeId () );
78+ $ this ->assertSame ( $ typeId , $ property ->getDataTypeId () );
7979 }
8080 }
8181
@@ -296,11 +296,11 @@ public function testSetLabel( $languageCode, $labelText, $moarText = 'ohi there'
296296
297297 $ entity ->setLabel ( $ languageCode , $ labelText );
298298
299- $ this ->assertEquals ( $ labelText , $ entity ->getFingerprint ()->getLabel ( $ languageCode )->getText () );
299+ $ this ->assertSame ( $ labelText , $ entity ->getFingerprint ()->getLabel ( $ languageCode )->getText () );
300300
301301 $ entity ->setLabel ( $ languageCode , $ moarText );
302302
303- $ this ->assertEquals ( $ moarText , $ entity ->getFingerprint ()->getLabel ( $ languageCode )->getText () );
303+ $ this ->assertSame ( $ moarText , $ entity ->getFingerprint ()->getLabel ( $ languageCode )->getText () );
304304 }
305305
306306 public function descriptionProvider () {
@@ -322,11 +322,11 @@ public function testSetDescription( $languageCode, $description, $moarText = 'oh
322322
323323 $ entity ->setDescription ( $ languageCode , $ description );
324324
325- $ this ->assertEquals ( $ description , $ entity ->getFingerprint ()->getDescription ( $ languageCode )->getText () );
325+ $ this ->assertSame ( $ description , $ entity ->getFingerprint ()->getDescription ( $ languageCode )->getText () );
326326
327327 $ entity ->setDescription ( $ languageCode , $ moarText );
328328
329- $ this ->assertEquals ( $ moarText , $ entity ->getFingerprint ()->getDescription ( $ languageCode )->getText () );
329+ $ this ->assertSame ( $ moarText , $ entity ->getFingerprint ()->getDescription ( $ languageCode )->getText () );
330330 }
331331
332332 public function aliasesProvider () {
@@ -368,12 +368,8 @@ public function testSetAliases( array $aliasesLists ) {
368368
369369 foreach ( $ aliasesLists as $ langCode => $ aliasesList ) {
370370 $ expected = array_values ( array_unique ( array_pop ( $ aliasesList ) ) );
371- asort ( $ aliasesList );
372-
373371 $ actual = $ entity ->getFingerprint ()->getAliasGroup ( $ langCode )->getAliases ();
374- asort ( $ actual );
375-
376- $ this ->assertEquals ( $ expected , $ actual );
372+ $ this ->assertSame ( $ expected , $ actual );
377373 }
378374 }
379375
0 commit comments