public function testAgentStopTrigger() { $report = $this->getMock('Telltale\\Report\\ReportInterface'); $agent = $this->getMock('Telltale\\Agent\\AgentInterface'); $agent->expects($this->once())->method('analyse')->will($this->returnValue($report)); $telltale = new Telltale(); $telltale->pushAgent($agent); $telltale->start(); $telltale->stop(); }