PHP Class Phalcon\Test\Unit\DiTest

Author: Andres Gutierrez ([email protected])
Author: Serghei Iakovlev ([email protected])
Inheritance: extends Phalcon\Test\Module\UnitTest
Show file Open project: phalcon/cphalcon

Protected Properties

Property Type Description
$phDi Phalcon\Test\Proxy\Di

Public Methods

Method Description
testAttempt ( ) Tests registering a service in the services container via Di::attempt
testComplexInjection ( ) Tests resolving a services via array access
testGetRawService ( ) Tests getting raw services
testGetServices ( ) Tests getting services
testGetShared ( ) Tests resolving shared service
testGettingDiViaGetDefault ( ) Tests the latest DI created
testGettingNonExistentService ( ) Tests getting non-existent service
testHas ( ) Tests check a service in the services container via Di::has
testMagicGetCall ( ) Tests resolving service via magic __get
testMagicSetCall ( ) Tests registering a service via magic __set
testRegisteringViaArrayAccess ( ) Tests registering a services via array access
testResolvingViaArrayAccess ( ) Tests resolving a services via array access
testSetAnonymousFunction ( ) Tests registering a service via anonymous function
testSetArray ( ) Tests registering a service via array
testSetParameters ( ) Tests registering a service with parameters
testSetString ( ) Tests registering a service via string

Protected Methods

Method Description
_before ( ) executed before each test

Method Details

_before() protected method

executed before each test
protected _before ( )

testAttempt() public method

Tests registering a service in the services container via Di::attempt
Since: 2016-01-29
Author: Serghei Iakovlev ([email protected])
public testAttempt ( )

testComplexInjection() public method

Tests resolving a services via array access
Since: 2016-01-29
Author: Serghei Iakovlev ([email protected])

testGetRawService() public method

Tests getting raw services
Since: 2016-01-29
Author: Serghei Iakovlev ([email protected])
public testGetRawService ( )

testGetServices() public method

Tests getting services
Since: 2016-01-29
Author: Serghei Iakovlev ([email protected])
public testGetServices ( )

testGetShared() public method

Tests resolving shared service
Since: 2016-01-29
Author: Serghei Iakovlev ([email protected])
public testGetShared ( )

testGettingDiViaGetDefault() public method

Tests the latest DI created
Since: 2016-01-29
Author: Serghei Iakovlev ([email protected])

testGettingNonExistentService() public method

Tests getting non-existent service
Since: 2016-01-29
Author: Serghei Iakovlev ([email protected])

testHas() public method

Tests check a service in the services container via Di::has
Since: 2016-01-29
Author: Serghei Iakovlev ([email protected])
public testHas ( )

testMagicGetCall() public method

Tests resolving service via magic __get
Since: 2016-01-29
Author: Serghei Iakovlev ([email protected])
public testMagicGetCall ( )

testMagicSetCall() public method

Tests registering a service via magic __set
Since: 2016-01-29
Author: Serghei Iakovlev ([email protected])
public testMagicSetCall ( )

testRegisteringViaArrayAccess() public method

Tests registering a services via array access
Since: 2016-01-29
Author: Serghei Iakovlev ([email protected])

testResolvingViaArrayAccess() public method

Tests resolving a services via array access
Since: 2016-01-29
Author: Serghei Iakovlev ([email protected])

testSetAnonymousFunction() public method

Tests registering a service via anonymous function
Since: 2016-01-29
Author: Serghei Iakovlev ([email protected])

testSetArray() public method

Tests registering a service via array
Since: 2016-01-29
Author: Serghei Iakovlev ([email protected])
public testSetArray ( )

testSetParameters() public method

Tests registering a service with parameters
Since: 2016-01-29
Author: Serghei Iakovlev ([email protected])
public testSetParameters ( )

testSetString() public method

Tests registering a service via string
Since: 2016-01-29
Author: Serghei Iakovlev ([email protected])
public testSetString ( )

Property Details

$phDi protected property

protected Di,Phalcon\Test\Proxy $phDi
return Phalcon\Test\Proxy\Di