public function testGetSetParent() { $this->assertEquals($this->object->getParent(), NULL); $mockModule = $this->getMockBuilder('Nethgui\\Module\\Composite')->disableOriginalConstructor()->getMock(); $this->object->setParent($mockModule); $this->assertEquals($this->object->getParent(), $mockModule); }