Skip to content

Commit 6467ba3

Browse files
committed
Remove dead code from ReferenceListTest
1 parent 31acb80 commit 6467ba3

1 file changed

Lines changed: 6 additions & 28 deletions

File tree

tests/unit/ReferenceListTest.php

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,13 @@
2525
class ReferenceListTest extends PHPUnit_Framework_TestCase {
2626

2727
public function instanceProvider() {
28-
$instances = array();
29-
30-
foreach ( $this->getConstructorArg() as $arg ) {
31-
$instances[] = array( new ReferenceList( $arg ) );
32-
}
33-
34-
return $instances;
35-
}
36-
37-
public function getElementInstances() {
38-
return array(
39-
new Reference(),
40-
new Reference( array( new PropertyNoValueSnak( 2 ) ) ),
41-
new Reference( array( new PropertyNoValueSnak( 3 ) ) ),
42-
);
43-
}
44-
45-
public function getConstructorArg() {
4628
return array(
47-
array(),
48-
$this->getElementInstances(),
29+
array( new ReferenceList( array() ) ),
30+
array( new ReferenceList( array(
31+
new Reference(),
32+
new Reference( array( new PropertyNoValueSnak( 2 ) ) ),
33+
new Reference( array( new PropertyNoValueSnak( 3 ) ) ),
34+
) ) ),
4935
);
5036
}
5137

@@ -147,14 +133,6 @@ public function testRemoveReference( ReferenceList $array ) {
147133
$this->assertFalse( $array->hasReference( $element ) );
148134
$this->assertEquals( --$elementCount, count( $array ) );
149135
}
150-
151-
$elements = $this->getElementInstances();
152-
$element = array_shift( $elements );
153-
154-
$array->removeReference( $element );
155-
$array->removeReference( $element );
156-
157-
$this->assertTrue( true );
158136
}
159137

160138
public function testRemoveReferenceRemovesIdenticalObjects() {

0 commit comments

Comments
 (0)