| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function testSetAndGetElements() { |
||
| 19 | $items = [ |
||
| 20 | new PropertyListElement( |
||
| 21 | new PropertyId( 'P1' ), |
||
| 22 | 'number', |
||
| 23 | 'https://www.wikidata.org/wiki/Property:P1', |
||
| 24 | 'http://api.queryr.com/properties/P1' |
||
| 25 | ), |
||
| 26 | new PropertyListElement( |
||
| 27 | new PropertyId( 'P2' ), |
||
| 28 | 'string', |
||
| 29 | 'https://www.wikidata.org/wiki/Property:P2', |
||
| 30 | 'http://api.queryr.com/properties/P2' |
||
| 31 | ) |
||
| 32 | ]; |
||
| 33 | |||
| 34 | $list = new PropertyList( $items ); |
||
| 35 | $this->assertSame( $items, $list->getElements() ); |
||
| 36 | |||
| 37 | |||
| 38 | } |
||
| 39 | |||
| 55 |