function ClassNodeSpec::its_hasMethod_returns_true_if_method_exists in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/spec/Prophecy/Doubler/Generator/Node/ClassNodeSpec.php \spec\Prophecy\Doubler\Generator\Node\ClassNodeSpec::its_hasMethod_returns_true_if_method_exists()
Parameters
\Prophecy\Doubler\Generator\Node\MethodNode $method:
File
- vendor/
phpspec/ prophecy/ spec/ Prophecy/ Doubler/ Generator/ Node/ ClassNodeSpec.php, line 90
Class
Namespace
spec\Prophecy\Doubler\Generator\NodeCode
function its_hasMethod_returns_true_if_method_exists($method) {
$method
->getName()
->willReturn('getName');
$this
->addMethod($method);
$this
->hasMethod('getName')
->shouldReturn(true);
}