PHP Класс PhpSpec\Laravel\Runner\Maintainer\LaravelMaintainer

Наследование: implements PhpSpec\Runner\Maintainer\Maintainer
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Laravel $laravel ) Constructor.
getPriority ( ) : integer Give this maintainer a high priority in the stack to ensure that Laravel is bootstrapped early.
prepare ( ExampleNode $example, PhpSpec\Specification $context, MatcherManager $matchers, CollaboratorManager $collaborators )
supports ( ExampleNode $example ) : boolean Check if this maintainer applies to the given node.
teardown ( ExampleNode $example, PhpSpec\Specification $context, MatcherManager $matchers, CollaboratorManager $collaborators )

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( Laravel $laravel )
$laravel PhpSpec\Laravel\Util\Laravel

getPriority() публичный Метод

Give this maintainer a high priority in the stack to ensure that Laravel is bootstrapped early.
public getPriority ( ) : integer
Результат integer

prepare() публичный Метод

public prepare ( ExampleNode $example, PhpSpec\Specification $context, MatcherManager $matchers, CollaboratorManager $collaborators )
$example PhpSpec\Loader\Node\ExampleNode
$context PhpSpec\Specification
$matchers PhpSpec\Runner\MatcherManager
$collaborators PhpSpec\Runner\CollaboratorManager

supports() публичный Метод

Will check for the 'setLaravel' method.
public supports ( ExampleNode $example ) : boolean
$example PhpSpec\Loader\Node\ExampleNode
Результат boolean

teardown() публичный Метод

public teardown ( ExampleNode $example, PhpSpec\Specification $context, MatcherManager $matchers, CollaboratorManager $collaborators )
$example PhpSpec\Loader\Node\ExampleNode
$context PhpSpec\Specification
$matchers PhpSpec\Runner\MatcherManager
$collaborators PhpSpec\Runner\CollaboratorManager