public function testDoEsiWithoutSurrogateCapabilityUsingRelativeUrl() { $response = new Response(); $response->setContent('test'); $application = Mockery::mock('Zend\\Mvc\\Application'); $application->shouldReceive('getRequest')->once()->andReturn(new Request()); $application->shouldReceive('run')->once()->andReturn($application); $application->shouldReceive('getResponse')->once()->andReturn($response); $this->viewHelper->setApplication($application); $response = $this->viewHelper->doEsi('/test'); $this->assertEquals('test', $response); }