public function testConfig() { $this->assertInstanceOf('ZFTool\\Diagnostics\\Config', $this->runner->getConfig()); $this->assertInstanceOf('ZFTool\\Diagnostics\\ConfigInterface', $this->runner->getConfig()); $newConfig = new Config(); $this->runner->setConfig($newConfig); $this->assertInstanceOf('ZFTool\\Diagnostics\\Config', $this->runner->getConfig()); $this->assertSame($newConfig, $this->runner->getConfig()); $newConfig->setBreakOnFailure(true); $this->assertTrue($newConfig->getBreakOnFailure()); $newConfig->setDefaultRunListenerClass('\\stdClass'); $this->assertSame('\\stdClass', $newConfig->getDefaultRunListenerClass()); $em = new EventManager(); $this->runner->setEventManager($em); $this->assertSame($em, $this->runner->getEventManager()); }