The method expects() does not seem to exist on object<Petrica\StatsdSystem\Model\TopCommand>.
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...
52
->method('getCommand')
53
->willReturn($command);
54
55
$this->setExpectedException(
56
'\RuntimeException',
57
'Command failed. Exit code 1, output Does not exist.'
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.