spec\PhpSpec\CodeGenerator\Generator\ClassGeneratorSpec::it_records_that_class_was_created_in_executioncontext PHP Method

it_records_that_class_was_created_in_executioncontext() public method

public it_records_that_class_was_created_in_executioncontext ( PhpSpec\Locator\Resource $resource, PhpSpec\Process\Context\ExecutionContext $executionContext )
$resource PhpSpec\Locator\Resource
$executionContext PhpSpec\Process\Context\ExecutionContext
    function it_records_that_class_was_created_in_executioncontext(Resource $resource, ExecutionContext $executionContext)
    {
        $resource->getName()->willReturn('App');
        $resource->getSrcFilename()->willReturn('/project/src/Acme/App.php');
        $resource->getSrcNamespace()->willReturn('Acme');
        $resource->getSrcClassname()->willReturn('Acme\\App');
        $this->generate($resource);
        $executionContext->addGeneratedType('Acme\\App')->shouldHaveBeenCalled();
    }