The method isDeserializerFor() does not seem to exist on object<PHPUnit\Framework\MockObject\MockObject>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
21
}
22
23
/**
24
* @param string $typeKey
25
* @return TypedObjectDeserializer
26
*/
27
private function newMockDeserializer( $typeKey = self::DEFAULT_TYPE_KEY ) {
28
return $this->getMockForAbstractClass(
29
TypedObjectDeserializer::class,
30
[
31
self::DUMMY_TYPE_VALUE,
32
$typeKey
33
]
34
);
35
}
36
37
private function newStubSerializationWithTypeKey( $typeKey ) {
38
return [ $typeKey => self::DUMMY_TYPE_VALUE ];
39
}
40
41
public function testGivenUnknownObjectKey_isDeserializerForReturnsFalse() {
The method isDeserializerFor() does not seem to exist on object<PHPUnit\Framework\MockObject\MockObject>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
44
}
45
46
public function testGivenSpecifiedObjectKey_isDeserializerForReturnsTrue() {
The method isDeserializerFor() does not seem to exist on object<PHPUnit\Framework\MockObject\MockObject>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.