public function test_get_setVocabulary() { $controller = new Controller(new MockMapper()); $controller->setVocabulary('test', 'http://test.org/'); $vocabularies = $controller->getVocabularies(); $this->assertEquals(array('test' => 'http://test.org/'), $vocabularies); $this->assertEquals('http://test.org/', $controller->getAttribute('xmlns:test')); }