PHP Class Polyglot\TestCases\ContainerTestCase

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Afficher le fichier Open project: anahkiasen/polyglot Class Usage Examples

Protected Properties

Свойство Type Description
$app Illuminate\Container\Container The current IoC Container

Méthodes publiques

Méthode Description
__get ( string $key ) : object Get an instance from the Container
__set ( string $key, object $value ) Set an instance on the container
setUp ( ) Set up the tests
tearDown ( ) : void Clean up mocked instances

Méthodes protégées

Méthode Description
mockConfig ( $options = [] ) : Mockery Mock Config
mockRequest ( $segment = 'fr' ) : Mockery Mock Request
mockUrl ( Request $request ) : UrlGenerator Get a new instance of UrlGenerator with a mock Request

Method Details

__get() public méthode

Get an instance from the Container
public __get ( string $key ) : object
$key string
Résultat object

__set() public méthode

Set an instance on the container
public __set ( string $key, object $value )
$key string
$value object

mockConfig() protected méthode

Mock Config
protected mockConfig ( $options = [] ) : Mockery
Résultat Mockery

mockRequest() protected méthode

Mock Request
protected mockRequest ( $segment = 'fr' ) : Mockery
Résultat Mockery

mockUrl() protected méthode

Get a new instance of UrlGenerator with a mock Request
protected mockUrl ( Request $request ) : UrlGenerator
$request Request
Résultat Polyglot\Services\UrlGenerator

setUp() public méthode

Set up the tests
public setUp ( )

tearDown() public méthode

Clean up mocked instances
public tearDown ( ) : void
Résultat void

Property Details

$app protected_oe property

The current IoC Container
protected Container,Illuminate\Container $app
Résultat Illuminate\Container\Container