We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c4fe708 + c21592a commit fcb96d4Copy full SHA for fcb96d4
1 file changed
tests/unit/ReferenceListTest.php
@@ -48,6 +48,15 @@ public function getConstructorArg() {
48
);
49
}
50
51
+ public function testCanConstructWithReferenceListObject() {
52
+ $reference = new Reference( array( new PropertyNoValueSnak( 1 ) ) );
53
+ $original = new ReferenceList( array( $reference ) );
54
+ $copy = new ReferenceList( $original );
55
+
56
+ $this->assertSame( 1, $copy->count() );
57
+ $this->assertNotNull( $copy->getReference( $reference->getHash() ) );
58
+ }
59
60
/**
61
* @dataProvider invalidConstructorArgumentsProvider
62
* @expectedException InvalidArgumentException
0 commit comments