@@ -406,12 +406,15 @@ public function testSerializerContextParametersAreAdded()
406
406
$ this ->handlerRegistry ->registerHandler (GraphNavigator::DIRECTION_SERIALIZATION , \Ex \SoapEnvelope12 \Messages \GetSimpleInput::class, 'xml ' ,
407
407
function ($ visitor , \Ex \SoapEnvelope12 \Messages \GetSimpleInput $ obj , array $ type , Context $ context ) {
408
408
409
- self :: assertTrue ($ context ->hasAttribute ('soapEndpoint ' ), 'The "soapEndpoint" attribute was not found on the context object ' );
410
- self :: assertEquals ('http://www.example.org/12 ' , $ context ->getAttribute ('soapEndpoint ' ));
409
+ $ this -> assertTrue ($ context ->hasAttribute ('soapEndpoint ' ), 'The "soapEndpoint" attribute was not found on the context object ' );
410
+ $ this -> assertEquals ('http://www.example.org/12 ' , $ context ->getAttribute ('soapEndpoint ' ));
411
411
412
- self ::assertTrue ($ context ->hasAttribute ('soapOperation ' ), 'The "soapOperation" attribute was not found on the context object ' );
413
- self ::assertIsArray ($ context ->getAttribute ('soapOperation ' ));
414
- self ::assertEquals ('http://www.example.org/test/getSimple ' , $ context ->getAttribute ('soapOperation ' )['action ' ]);
412
+ $ this ->assertTrue ($ context ->hasAttribute ('soapOperation ' ), 'The "soapOperation" attribute was not found on the context object ' );
413
+ $ this ->assertTrue (
414
+ is_array ($ context ->getAttribute ('soapOperation ' )),
415
+ 'The "soapOperation" attribute is not of type array, but ' .gettype ($ context ->getAttribute ('soapOperation ' ))
416
+ );
417
+ $ this ->assertEquals ('http://www.example.org/test/getSimple ' , $ context ->getAttribute ('soapOperation ' )['action ' ]);
415
418
416
419
throw new SerializerHandlerAssertionsWereExecuted ('Stop serialization, test has finished ' );
417
420
}
@@ -420,7 +423,7 @@ function($visitor, \Ex\SoapEnvelope12\Messages\GetSimpleInput $obj, array $type,
420
423
$ client = $ this ->getClient ();
421
424
422
425
// Assert that subscribing handler with assertions was executed
423
- self :: expectException (SerializerHandlerAssertionsWereExecuted::class);
426
+ $ this -> expectException (SerializerHandlerAssertionsWereExecuted::class);
424
427
425
428
$ client ->getSimple ('foo ' );
426
429
}
0 commit comments