| @@ 37-46 (lines=10) @@ | ||
| 34 | } |
|
| 35 | ||
| 36 | ||
| 37 | public function testSetVocabulary() |
|
| 38 | { |
|
| 39 | $vocabulary = $this->vocabulary; |
|
| 40 | $vocabulary['my'] = 'urn:test:'; |
|
| 41 | ||
| 42 | $obj = new DummyModel(array()); |
|
| 43 | $obj->setVocabulary('my','urn:test:'); |
|
| 44 | ||
| 45 | $this->assertEquals($vocabulary, $obj->getVocabulary()); |
|
| 46 | } |
|
| 47 | ||
| 48 | ||
| 49 | public function testUnsetVocabulary() |
|
| @@ 49-58 (lines=10) @@ | ||
| 46 | } |
|
| 47 | ||
| 48 | ||
| 49 | public function testUnsetVocabulary() |
|
| 50 | { |
|
| 51 | $vocabulary = $this->vocabulary; |
|
| 52 | unset($vocabulary['foaf']); |
|
| 53 | ||
| 54 | $obj = new DummyModel(array()); |
|
| 55 | $obj->unsetVocabulary('foaf'); |
|
| 56 | ||
| 57 | $this->assertEquals($vocabulary, $obj->getVocabulary()); |
|
| 58 | } |
|
| 59 | ||
| 60 | ||
| 61 | /** |
|