PHP Class spec\Prophecy\Doubler\Generator\ClassCodeGeneratorSpec

Inheritance: extends PhpSpec\ObjectBehavior
Afficher le fichier Open project: phpspec/prophecy

Méthodes publiques

Méthode Description
it_generates_empty_class_for_empty_ClassNode ( Prophecy\Doubler\Generator\Node\ClassNode $class )
it_generates_proper_php_code_for_specific_ClassNode ( Prophecy\Doubler\Generator\Node\ClassNode $class, Prophecy\Doubler\Generator\Node\MethodNode $method1, Prophecy\Doubler\Generator\Node\MethodNode $method2, Prophecy\Doubler\Generator\Node\MethodNode $method3, Prophecy\Doubler\Generator\Node\ArgumentNode $argument11, Prophecy\Doubler\Generator\Node\ArgumentNode $argument12, Prophecy\Doubler\Generator\Node\ArgumentNode $argument21, Prophecy\Doubler\Generator\Node\ArgumentNode $argument31 )
it_generates_proper_php_code_for_variadics ( Prophecy\Doubler\Generator\Node\ClassNode $class, Prophecy\Doubler\Generator\Node\MethodNode $method1, Prophecy\Doubler\Generator\Node\MethodNode $method2, Prophecy\Doubler\Generator\Node\MethodNode $method3, Prophecy\Doubler\Generator\Node\MethodNode $method4, Prophecy\Doubler\Generator\Node\ArgumentNode $argument1, Prophecy\Doubler\Generator\Node\ArgumentNode $argument2, Prophecy\Doubler\Generator\Node\ArgumentNode $argument3, Prophecy\Doubler\Generator\Node\ArgumentNode $argument4 )
it_overrides_properly_methods_with_args_passed_by_reference ( Prophecy\Doubler\Generator\Node\ClassNode $class, Prophecy\Doubler\Generator\Node\MethodNode $method, Prophecy\Doubler\Generator\Node\ArgumentNode $argument )
it_wraps_class_in_namespace_if_it_is_namespaced ( Prophecy\Doubler\Generator\Node\ClassNode $class )

Method Details

it_generates_empty_class_for_empty_ClassNode() public méthode

public it_generates_empty_class_for_empty_ClassNode ( Prophecy\Doubler\Generator\Node\ClassNode $class )
$class Prophecy\Doubler\Generator\Node\ClassNode

it_generates_proper_php_code_for_specific_ClassNode() public méthode

public it_generates_proper_php_code_for_specific_ClassNode ( Prophecy\Doubler\Generator\Node\ClassNode $class, Prophecy\Doubler\Generator\Node\MethodNode $method1, Prophecy\Doubler\Generator\Node\MethodNode $method2, Prophecy\Doubler\Generator\Node\MethodNode $method3, Prophecy\Doubler\Generator\Node\ArgumentNode $argument11, Prophecy\Doubler\Generator\Node\ArgumentNode $argument12, Prophecy\Doubler\Generator\Node\ArgumentNode $argument21, Prophecy\Doubler\Generator\Node\ArgumentNode $argument31 )
$class Prophecy\Doubler\Generator\Node\ClassNode
$method1 Prophecy\Doubler\Generator\Node\MethodNode
$method2 Prophecy\Doubler\Generator\Node\MethodNode
$method3 Prophecy\Doubler\Generator\Node\MethodNode
$argument11 Prophecy\Doubler\Generator\Node\ArgumentNode
$argument12 Prophecy\Doubler\Generator\Node\ArgumentNode
$argument21 Prophecy\Doubler\Generator\Node\ArgumentNode
$argument31 Prophecy\Doubler\Generator\Node\ArgumentNode

it_generates_proper_php_code_for_variadics() public méthode

public it_generates_proper_php_code_for_variadics ( Prophecy\Doubler\Generator\Node\ClassNode $class, Prophecy\Doubler\Generator\Node\MethodNode $method1, Prophecy\Doubler\Generator\Node\MethodNode $method2, Prophecy\Doubler\Generator\Node\MethodNode $method3, Prophecy\Doubler\Generator\Node\MethodNode $method4, Prophecy\Doubler\Generator\Node\ArgumentNode $argument1, Prophecy\Doubler\Generator\Node\ArgumentNode $argument2, Prophecy\Doubler\Generator\Node\ArgumentNode $argument3, Prophecy\Doubler\Generator\Node\ArgumentNode $argument4 )
$class Prophecy\Doubler\Generator\Node\ClassNode
$method1 Prophecy\Doubler\Generator\Node\MethodNode
$method2 Prophecy\Doubler\Generator\Node\MethodNode
$method3 Prophecy\Doubler\Generator\Node\MethodNode
$method4 Prophecy\Doubler\Generator\Node\MethodNode
$argument1 Prophecy\Doubler\Generator\Node\ArgumentNode
$argument2 Prophecy\Doubler\Generator\Node\ArgumentNode
$argument3 Prophecy\Doubler\Generator\Node\ArgumentNode
$argument4 Prophecy\Doubler\Generator\Node\ArgumentNode

it_overrides_properly_methods_with_args_passed_by_reference() public méthode

public it_overrides_properly_methods_with_args_passed_by_reference ( Prophecy\Doubler\Generator\Node\ClassNode $class, Prophecy\Doubler\Generator\Node\MethodNode $method, Prophecy\Doubler\Generator\Node\ArgumentNode $argument )
$class Prophecy\Doubler\Generator\Node\ClassNode
$method Prophecy\Doubler\Generator\Node\MethodNode
$argument Prophecy\Doubler\Generator\Node\ArgumentNode

it_wraps_class_in_namespace_if_it_is_namespaced() public méthode

public it_wraps_class_in_namespace_if_it_is_namespaced ( Prophecy\Doubler\Generator\Node\ClassNode $class )
$class Prophecy\Doubler\Generator\Node\ClassNode