matches($object, 'unknown'); $this->assertEquals($expected, $actual); } public function providePairs() { return [ [new FooProxy(), true], [new stdClass(), false], ]; } } class FooProxy implements Proxy { /** * @inheritdoc */ public function __load() { throw new BadMethodCallException(); } /** * @inheritdoc */ public function __isInitialized() { throw new BadMethodCallException(); } }