public function setUp() { $this->serializer = DefaultRequestSerializer::getInstance(); $this->client = new Client('http://foo.com/baz'); $this->operation = new Operation(array('httpMethod' => 'POST')); $this->command = $this->getMockBuilder('Guzzle\\Service\\Command\\AbstractCommand')->setConstructorArgs(array(array(), $this->operation))->getMockForAbstractClass(); $this->command->setClient($this->client); }