private function CoreDriverTest::getArgument in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/tests/Driver/CoreDriverTest.php \Behat\Mink\Tests\Driver\CoreDriverTest::getArgument()
1 call to CoreDriverTest::getArgument()
- CoreDriverTest::getArguments in vendor/
behat/ mink/ tests/ Driver/ CoreDriverTest.php
File
- vendor/
behat/ mink/ tests/ Driver/ CoreDriverTest.php, line 92
Class
Namespace
Behat\Mink\Tests\DriverCode
private function getArgument(\ReflectionParameter $argument) {
if ($argument
->isOptional()) {
return $argument
->getDefaultValue();
}
if ($argument
->allowsNull()) {
return null;
}
if ($argument
->getClass()) {
return $this
->getMockBuilder($argument
->getClass()
->getName())
->disableOriginalConstructor()
->getMock();
}
return null;
}