spec\Prophecy\Doubler\NameGeneratorSpec::its_name_generates_name_based_only_on_class_if_its_available PHP Method

its_name_generates_name_based_only_on_class_if_its_available() public method

public its_name_generates_name_based_only_on_class_if_its_available ( ReflectionClass $class, ReflectionClass $interface1, ReflectionClass $interface2 )
$class ReflectionClass
$interface1 ReflectionClass
$interface2 ReflectionClass
    function its_name_generates_name_based_only_on_class_if_its_available(\ReflectionClass $class, \ReflectionClass $interface1, \ReflectionClass $interface2)
    {
        $class->getName()->willReturn('Some\\Custom\\Class');
        $interface1->getShortName()->willReturn('HandlerInterface');
        $interface2->getShortName()->willReturn('LoaderInterface');
        $this->name($class, array($interface1, $interface2))->shouldStartWith('Double\\Some\\Custom\\Class\\P');
    }