PHP 클래스 Polyglot\TestCases\ContainerTestCase

상속: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: anahkiasen/polyglot 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$app Illuminate\Container\Container The current IoC Container

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
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

메소드 상세

__get() 공개 메소드

Get an instance from the Container
public __get ( string $key ) : object
$key string
리턴 object

__set() 공개 메소드

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

mockConfig() 보호된 메소드

Mock Config
protected mockConfig ( $options = [] ) : Mockery
리턴 Mockery

mockRequest() 보호된 메소드

Mock Request
protected mockRequest ( $segment = 'fr' ) : Mockery
리턴 Mockery

mockUrl() 보호된 메소드

Get a new instance of UrlGenerator with a mock Request
protected mockUrl ( Request $request ) : UrlGenerator
$request Request
리턴 Polyglot\Services\UrlGenerator

setUp() 공개 메소드

Set up the tests
public setUp ( )

tearDown() 공개 메소드

Clean up mocked instances
public tearDown ( ) : void
리턴 void

프로퍼티 상세

$app 보호되어 있는 프로퍼티

The current IoC Container
protected Container,Illuminate\Container $app
리턴 Illuminate\Container\Container