public function testInterfacesMethods() { $interfaces = array('interface1', 'interface2', 'interface3'); $this->class->setInterfaces($interfaces); $this->assertEquals($interfaces, $this->class->getInterfaces(), 'Get interface should return previously set interfaces'); $this->class->addInterface('interface4'); $this->assertEquals(array_merge($interfaces, array('interface4')), $this->class->getInterfaces()); $this->class->removeInterface('interface2'); $this->assertEquals(array('interface1', 'interface3', 'interface4'), array_values($this->class->getInterfaces())); }