We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2e92cb commit c21592aCopy full SHA for c21592a
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