public function testRegisterNamespaces() { $this->object->registerNamespaces(array('test' => null, 'test2' => null)); $ns = $this->reflector->getProperty('namespaces'); $ns->setAccessible('true'); $this->assertArrayHasKey('test', $ns->getValue($this->object)); $this->assertArrayHasKey('test2', $ns->getValue($this->object)); }