foo = $this->getMock('OSInet\Testable\Foo', NULL, array('bar', 'qux')); $rc = new \ReflectionClass($this->foo); print_r($rc->getMethods()); $this->foo2 = $this->getMockBuilder('OSInet\Testable\Foo') ->getMock(); $rc = new \ReflectionClass($this->foo2); print_r($rc->getMethods()); } public function testCall() { $this->foo->call('http://example.com', array('system.listMethods', array())); } }