function ClassMirrorSpec::it_does_not_throw_exception_for_virtually_private_finals in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/spec/Prophecy/Doubler/Generator/ClassMirrorSpec.php \spec\Prophecy\Doubler\Generator\ClassMirrorSpec::it_does_not_throw_exception_for_virtually_private_finals()
Parameters
ReflectionClass $class:
ReflectionMethod $method:
File
- vendor/
phpspec/ prophecy/ spec/ Prophecy/ Doubler/ Generator/ ClassMirrorSpec.php, line 542
Class
Namespace
spec\Prophecy\Doubler\GeneratorCode
function it_does_not_throw_exception_for_virtually_private_finals($class, $method) {
$class
->getName()
->willReturn('SomeClass');
$class
->isInterface()
->willReturn(false);
$class
->isFinal()
->willReturn(false);
$class
->getMethods(ReflectionMethod::IS_ABSTRACT)
->willReturn(array());
$class
->getMethods(ReflectionMethod::IS_PUBLIC)
->willReturn(array(
$method,
));
$method
->getName()
->willReturn('__toString');
$method
->isFinal()
->willReturn(true);
$this
->shouldNotThrow()
->duringReflect($class, array());
}