PHP Class spec\PhpSpec\CodeGenerator\Generator\ClassGeneratorSpec

Inheritance: extends PhpSpec\ObjectBehavior
Mostra file Open project: phpspec/phpspec

Public Methods

Method Description
it_asks_confirmation_if_class_already_exists ( $io, $tpl, $fs, PhpSpec\Locator\Resource $resource )
it_creates_folder_for_class_if_needed ( $io, $tpl, $fs, PhpSpec\Locator\Resource $resource )
it_does_not_support_anything_else ( PhpSpec\Locator\Resource $resource )
it_generates_class_from_resource_and_puts_it_into_appropriate_folder ( $io, $tpl, $fs, PhpSpec\Locator\Resource $resource )
it_is_a_generator ( )
it_records_that_class_was_created_in_executioncontext ( PhpSpec\Locator\Resource $resource, PhpSpec\Process\Context\ExecutionContext $executionContext )
it_supports_class_generation ( PhpSpec\Locator\Resource $resource )
it_uses_template_provided_by_templating_system_if_there_is_one ( $io, $tpl, $fs, PhpSpec\Locator\Resource $resource )
its_priority_is_0 ( )
let ( ConsoleIO $io, TemplateRenderer $tpl, Filesystem $fs, PhpSpec\Process\Context\ExecutionContext $executionContext )

Method Details

it_asks_confirmation_if_class_already_exists() public method

public it_asks_confirmation_if_class_already_exists ( $io, $tpl, $fs, PhpSpec\Locator\Resource $resource )
$resource PhpSpec\Locator\Resource

it_creates_folder_for_class_if_needed() public method

public it_creates_folder_for_class_if_needed ( $io, $tpl, $fs, PhpSpec\Locator\Resource $resource )
$resource PhpSpec\Locator\Resource

it_does_not_support_anything_else() public method

public it_does_not_support_anything_else ( PhpSpec\Locator\Resource $resource )
$resource PhpSpec\Locator\Resource

it_generates_class_from_resource_and_puts_it_into_appropriate_folder() public method

public it_generates_class_from_resource_and_puts_it_into_appropriate_folder ( $io, $tpl, $fs, PhpSpec\Locator\Resource $resource )
$resource PhpSpec\Locator\Resource

it_is_a_generator() public method

public it_is_a_generator ( )

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

it_supports_class_generation() public method

public it_supports_class_generation ( PhpSpec\Locator\Resource $resource )
$resource PhpSpec\Locator\Resource

it_uses_template_provided_by_templating_system_if_there_is_one() public method

public it_uses_template_provided_by_templating_system_if_there_is_one ( $io, $tpl, $fs, PhpSpec\Locator\Resource $resource )
$resource PhpSpec\Locator\Resource

its_priority_is_0() public method

public its_priority_is_0 ( )

let() public method

public let ( ConsoleIO $io, TemplateRenderer $tpl, Filesystem $fs, PhpSpec\Process\Context\ExecutionContext $executionContext )
$io PhpSpec\Console\ConsoleIO
$tpl PhpSpec\CodeGenerator\TemplateRenderer
$fs PhpSpec\Util\Filesystem
$executionContext PhpSpec\Process\Context\ExecutionContext