Commit fade0223 authored by Gasol Wu's avatar Gasol Wu Committed by Bas de Nooijer

Replace constructor with factory method

parent a57e5234
...@@ -142,7 +142,7 @@ EOF; ...@@ -142,7 +142,7 @@ EOF;
$mockHttpRequest = $this->getMock('HttpRequest'); $mockHttpRequest = $this->getMock('HttpRequest');
$mockHttpRequest->expects($this->once()) $mockHttpRequest->expects($this->once())
->method('send') ->method('send')
->will($this->returnValue(new HttpMessage($data))); ->will($this->returnValue(HttpMessage::factory($data)));
$mock = $this->getMock('Solarium_Client_Adapter_PeclHttp', array('toHttpRequest')); $mock = $this->getMock('Solarium_Client_Adapter_PeclHttp', array('toHttpRequest'));
$mock->expects($this->once()) $mock->expects($this->once())
->method('toHttpRequest') ->method('toHttpRequest')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment