Skip to content

Commit

Permalink
Use ::class constant instead of string with class name
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Mar 21, 2020
1 parent 7ab43ab commit 76dd3c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Framework/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -1734,7 +1734,7 @@ protected function getMockForAbstractClass(string $originalClassName, array $arg
*/
protected function getMockFromWsdl($wsdlFile, $originalClassName = '', $mockClassName = '', array $methods = [], $callOriginalConstructor = true, array $options = []): MockObject
{
$this->recordDoubledType('SoapClient');
$this->recordDoubledType(SoapClient::class);

if ($originalClassName === '') {
$fileName = \pathinfo(\basename(\parse_url($wsdlFile)['path']), \PATHINFO_FILENAME);
Expand Down

0 comments on commit 76dd3c3

Please sign in to comment.