PHP 클래스 PhpBench\Tests\Unit\Registry\RegistryTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: dantleech/phpbench 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$container
$registry
$service1
$service2

공개 메소드들

메소드 설명
setUp ( )
testDefaultGet ( ) It should return a default service if no argument is given to get().
testDefaultGetNoDefault ( ) It should throw an exception if no argument given to get() and no default is defined.
testExceptionServivceNotExist ( ) It should throw an exception if a service does not exist.
testRegisterAlreadyRegistered ( ) It should throw an exception if setting an already set service.
testRegisterRetrieveService ( ) It should register a service It should retrieve a service It should retrieve a service from the container only once.
testSetAndRetrieve ( ) It should set and retrieve services.

메소드 상세

setUp() 공개 메소드

public setUp ( )

testDefaultGet() 공개 메소드

It should return a default service if no argument is given to get().
public testDefaultGet ( )

testDefaultGetNoDefault() 공개 메소드

It should throw an exception if no argument given to get() and no default is defined.

testExceptionServivceNotExist() 공개 메소드

It should throw an exception if a service does not exist.

testRegisterAlreadyRegistered() 공개 메소드

It should throw an exception if setting an already set service.

testRegisterRetrieveService() 공개 메소드

It should register a service It should retrieve a service It should retrieve a service from the container only once.

testSetAndRetrieve() 공개 메소드

It should set and retrieve services.
public testSetAndRetrieve ( )

프로퍼티 상세

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

protected $container

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

protected $registry

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

protected $service1

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

protected $service2