/** * @test */ public function stageAction() { $name = '\\Aimeos\\Client\\Html\\Catalog\\Stage\\Standard'; $client = $this->getMock($name, array('getBody', 'getHeader', 'process'), array(), '', false); $client->expects($this->once())->method('getBody')->will($this->returnValue('body')); $client->expects($this->once())->method('getHeader')->will($this->returnValue('header')); \Aimeos\Client\Html\Catalog\Stage\Factory::injectClient($name, $client); $output = $this->object->stageAction(); \Aimeos\Client\Html\Catalog\Stage\Factory::injectClient($name, null); $this->assertEquals('body', $output); }