PHP Class spec\Prophecy\Doubler\DoublerSpec

Inheritance: extends PhpSpec\ObjectBehavior
ファイルを表示 Open project: phpspec/prophecy

Public Methods

Method Description
it_can_instantiate_class_with_final_constructor ( $mirror, ReflectionClass $class, Prophecy\Doubler\Generator\Node\ClassNode $node, $namer )
it_does_not_have_patches_by_default ( )
it_double_instantiates_a_class_with_constructor_argument ( $mirror, ReflectionClass $class, Prophecy\Doubler\Generator\Node\ClassNode $node, $namer )
its_double_mirrors_alterates_and_instantiates_provided_class ( $mirror, $creator, $namer, Prophecy\Doubler\ClassPatch\ClassPatchInterface $alt1, Prophecy\Doubler\ClassPatch\ClassPatchInterface $alt2, ReflectionClass $class, ReflectionClass $interface1, ReflectionClass $interface2, Prophecy\Doubler\Generator\Node\ClassNode $node )
its_getClassPatches_sorts_patches_by_priority ( Prophecy\Doubler\ClassPatch\ClassPatchInterface $alt1, Prophecy\Doubler\ClassPatch\ClassPatchInterface $alt2, Prophecy\Doubler\ClassPatch\ClassPatchInterface $alt3, Prophecy\Doubler\ClassPatch\ClassPatchInterface $alt4 )
its_registerClassPatch_adds_a_patch_to_the_doubler ( Prophecy\Doubler\ClassPatch\ClassPatchInterface $patch )
let ( Prophecy\Doubler\Generator\ClassMirror $mirror, Prophecy\Doubler\Generator\ClassCreator $creator, Prophecy\Doubler\NameGenerator $namer )

Method Details

it_can_instantiate_class_with_final_constructor() public method

public it_can_instantiate_class_with_final_constructor ( $mirror, ReflectionClass $class, Prophecy\Doubler\Generator\Node\ClassNode $node, $namer )
$class ReflectionClass
$node Prophecy\Doubler\Generator\Node\ClassNode

it_does_not_have_patches_by_default() public method

it_double_instantiates_a_class_with_constructor_argument() public method

public it_double_instantiates_a_class_with_constructor_argument ( $mirror, ReflectionClass $class, Prophecy\Doubler\Generator\Node\ClassNode $node, $namer )
$class ReflectionClass
$node Prophecy\Doubler\Generator\Node\ClassNode

its_double_mirrors_alterates_and_instantiates_provided_class() public method

public its_double_mirrors_alterates_and_instantiates_provided_class ( $mirror, $creator, $namer, Prophecy\Doubler\ClassPatch\ClassPatchInterface $alt1, Prophecy\Doubler\ClassPatch\ClassPatchInterface $alt2, ReflectionClass $class, ReflectionClass $interface1, ReflectionClass $interface2, Prophecy\Doubler\Generator\Node\ClassNode $node )
$alt1 Prophecy\Doubler\ClassPatch\ClassPatchInterface
$alt2 Prophecy\Doubler\ClassPatch\ClassPatchInterface
$class ReflectionClass
$interface1 ReflectionClass
$interface2 ReflectionClass
$node Prophecy\Doubler\Generator\Node\ClassNode

its_getClassPatches_sorts_patches_by_priority() public method

public its_getClassPatches_sorts_patches_by_priority ( Prophecy\Doubler\ClassPatch\ClassPatchInterface $alt1, Prophecy\Doubler\ClassPatch\ClassPatchInterface $alt2, Prophecy\Doubler\ClassPatch\ClassPatchInterface $alt3, Prophecy\Doubler\ClassPatch\ClassPatchInterface $alt4 )
$alt1 Prophecy\Doubler\ClassPatch\ClassPatchInterface
$alt2 Prophecy\Doubler\ClassPatch\ClassPatchInterface
$alt3 Prophecy\Doubler\ClassPatch\ClassPatchInterface
$alt4 Prophecy\Doubler\ClassPatch\ClassPatchInterface

its_registerClassPatch_adds_a_patch_to_the_doubler() public method

public its_registerClassPatch_adds_a_patch_to_the_doubler ( Prophecy\Doubler\ClassPatch\ClassPatchInterface $patch )
$patch Prophecy\Doubler\ClassPatch\ClassPatchInterface

let() public method

public let ( Prophecy\Doubler\Generator\ClassMirror $mirror, Prophecy\Doubler\Generator\ClassCreator $creator, Prophecy\Doubler\NameGenerator $namer )
$mirror Prophecy\Doubler\Generator\ClassMirror
$creator Prophecy\Doubler\Generator\ClassCreator
$namer Prophecy\Doubler\NameGenerator