Skip to content

Commit c145f77

Browse files
authored
Merge pull request #726 from wmde/snakListTestClassName
Do not use dynamic class name in SnakListTest
2 parents 20a4385 + f81674b commit c145f77

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/unit/Snak/SnakListTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,6 @@ public function testAddSnak( SnakList $array ) {
181181
}
182182

183183
public function orderByPropertyProvider() {
184-
$class = $this->getInstanceClass();
185-
186184
$id1 = new PropertyId( 'P1' );
187185
$id2 = new PropertyId( 'P2' );
188186
$id3 = new PropertyId( 'P3' );
@@ -265,8 +263,8 @@ public function orderByPropertyProvider() {
265263

266264
foreach ( $rawArguments as $key => $rawArgument ) {
267265
$arguments[$key] = [
268-
new $class( $rawArgument[0] ),
269-
new $class( $rawArgument[1] ),
266+
new SnakList( $rawArgument[0] ),
267+
new SnakList( $rawArgument[1] ),
270268
array_key_exists( 2, $rawArgument ) ? $rawArgument[2] : []
271269
];
272270
}

0 commit comments

Comments
 (0)