public function testAgentStartTrigger() { $agent = $this->getMock('Telltale\\Agent\\AgentInterface'); $agent->expects($this->once())->method('start'); $telltale = new Telltale(); $telltale->pushAgent($agent); $telltale->start(); $telltale->popAgent(); $telltale->stop(); }