Skip to content

Commit f53d9de

Browse files
committed
"wikibase/wikibase-codesniffer": "~1.1.0"
All fixes were auto fixes
1 parent 72facce commit f53d9de

17 files changed

Lines changed: 20 additions & 20 deletions

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"ockcyp/covers-validator": "~0.5.0",
3636
"phpmd/phpmd": "~2.6",
3737
"phpunit/phpunit": "~5.7",
38-
"wikibase/wikibase-codesniffer": "~1.0.0"
38+
"wikibase/wikibase-codesniffer": "~1.1.0"
3939
},
4040
"autoload": {
4141
"psr-4": {

tests/unit/Entity/EntityIdTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Wikibase\DataModel\Tests\Entity;
44

5-
use ReflectionClass;
65
use InvalidArgumentException;
6+
use ReflectionClass;
77
use Wikibase\DataModel\Entity\EntityId;
88
use Wikibase\DataModel\Entity\ItemId;
99
use Wikibase\DataModel\Entity\PropertyId;
@@ -82,7 +82,7 @@ public function testSerializationStability() {
8282
* @dataProvider instanceProvider
8383
*/
8484
public function testReturnTypeOfToString( EntityId $id ) {
85-
$this->assertInternalType( 'string', $id->__toString() );
85+
$this->assertIsString( $id->__toString() );
8686
}
8787

8888
public function testIsForeign() {

tests/unit/Entity/EntityIdValueTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function testGetValue( EntityIdValue $id ) {
7676
* @dataProvider instanceProvider
7777
*/
7878
public function testGetSortKey( EntityIdValue $id ) {
79-
$this->assertInternalType( 'string', $id->getSortKey() );
79+
$this->assertIsString( $id->getSortKey() );
8080
}
8181

8282
public function provideGetArrayValue() {

tests/unit/Entity/ItemIdSetTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function serializationsProvider() {
4040

4141
public function testGivenEmptySet_countReturnsZero() {
4242
$set = new ItemIdSet();
43-
$this->assertEquals( 0, $set->count() );
43+
$this->assertSame( 0, $set->count() );
4444
}
4545

4646
public function testGivenSetWithTwoItems_countReturnsTwo() {

tests/unit/Entity/ItemIdTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Wikibase\DataModel\Tests\Entity;
44

5-
use Wikibase\DataModel\Entity\ItemId;
65
use InvalidArgumentException;
6+
use Wikibase\DataModel\Entity\ItemId;
77

88
/**
99
* @covers \Wikibase\DataModel\Entity\ItemId

tests/unit/Entity/ItemTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ public function testCopyRetainsLabels() {
571571
public function testSerialize( Item $entity ) {
572572
$string = serialize( $entity );
573573

574-
$this->assertInternalType( 'string', $string );
574+
$this->assertIsString( $string );
575575

576576
$instance = unserialize( $string );
577577

tests/unit/Entity/PropertyIdTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Wikibase\DataModel\Tests\Entity;
44

5-
use Wikibase\DataModel\Entity\PropertyId;
65
use InvalidArgumentException;
6+
use Wikibase\DataModel\Entity\PropertyId;
77

88
/**
99
* @covers \Wikibase\DataModel\Entity\PropertyId

tests/unit/Entity/PropertyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ public function testCopyRetainsLabels() {
445445
public function testSerialize( Property $entity ) {
446446
$string = serialize( $entity );
447447

448-
$this->assertInternalType( 'string', $string );
448+
$this->assertIsString( $string );
449449

450450
$instance = unserialize( $string );
451451

tests/unit/ReferenceListTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ public function testEquals( ReferenceList $array ) {
348348
* @dataProvider instanceProvider
349349
*/
350350
public function testGetValueHashReturnsString( ReferenceList $array ) {
351-
$this->assertInternalType( 'string', $array->getValueHash() );
351+
$this->assertIsString( $array->getValueHash() );
352352
}
353353

354354
/**

tests/unit/ReferenceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function testConstructor( SnakList $snaks ) {
8585
* @dataProvider instanceProvider
8686
*/
8787
public function testGetHashReturnsString( Reference $reference ) {
88-
$this->assertInternalType( 'string', $reference->getHash() );
88+
$this->assertIsString( $reference->getHash() );
8989
}
9090

9191
/**

0 commit comments

Comments
 (0)