PHP Class Phalcon\Test\Unit\DiTest

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

Protected Properties

Свойство Type Description
$phDi Phalcon\Test\Proxy\Di

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
_before ( ) executed before each test

Method Details

_before() protected méthode

executed before each test
protected _before ( )

testAttempt() public méthode

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

testComplexInjection() public méthode

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

testGetRawService() public méthode

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

testGetServices() public méthode

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

testGetShared() public méthode

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

testGettingDiViaGetDefault() public méthode

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

testGettingNonExistentService() public méthode

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

testHas() public méthode

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

testMagicGetCall() public méthode

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

testMagicSetCall() public méthode

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

testRegisteringViaArrayAccess() public méthode

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

testResolvingViaArrayAccess() public méthode

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

testSetAnonymousFunction() public méthode

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

testSetArray() public méthode

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

testSetParameters() public méthode

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

testSetString() public méthode

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

Property Details

$phDi protected_oe property

protected Di,Phalcon\Test\Proxy $phDi
Résultat Phalcon\Test\Proxy\Di