Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | public function testElement() { |
||
41 | $item = new PropertyListElement( |
||
42 | new PropertyId( 'P1' ), |
||
43 | 'number', |
||
44 | 'https://www.wikidata.org/wiki/Property:P1', |
||
45 | 'http://api.queryr.com/properties/P1' |
||
46 | ); |
||
47 | |||
48 | $this->assertEquals( new PropertyId( 'P1' ), $item->getPropertyId() ); |
||
49 | $this->assertEquals( 'number', $item->getPropertyType() ); |
||
50 | $this->assertEquals( 'https://www.wikidata.org/wiki/Property:P1', $item->getWikidataUrl() ); |
||
51 | $this->assertEquals( 'http://api.queryr.com/properties/P1', $item->getApiUrl() ); |
||
52 | } |
||
53 | |||
55 |