->getMockBuilder()->setMethods() 1/4 setMethods() has 4 possible outcomes Don't call setMethods() – All methods in mocked object are stubs – Return null – Methods easily overridable $payment = $this->getMockBuilder( AuthorizeNetAIM ) ->getMock(); Passes is_a() checks!
{}