MediaWiki  1.30.0
ObjectFactoryTest Class Reference
Inheritance diagram for ObjectFactoryTest:
Collaboration diagram for ObjectFactoryTest:

Public Member Functions

 testClosureExpansionDisabled ()
 ObjectFactory::getObjectFromSpec. More...
 
 testClosureExpansionEnabled ()
 ObjectFactory::getObjectFromSpec ObjectFactory::expandClosures. More...
 
 testConstructClassInstance ( $args)
 ObjectFactory::constructClassInstance provideConstructClassInstance. More...
 
 testGetObjectFromClass ( $args)
 ObjectFactory::getObjectFromSpec provideConstructClassInstance. More...
 
 testGetObjectFromFactory ()
 ObjectFactory::getObjectFromSpec. More...
 
 testGetObjectFromInvalid ()
 ObjectFactory::getObjectFromSpec InvalidArgumentException. More...
 
 testNamedArgs ()
 ObjectFactory::constructClassInstance InvalidArgumentException. More...
 

Static Public Member Functions

static provideConstructClassInstance ()
 

Detailed Description

Definition at line 21 of file ObjectFactoryTest.php.

Member Function Documentation

◆ provideConstructClassInstance()

static ObjectFactoryTest::provideConstructClassInstance ( )
static

Definition at line 141 of file ObjectFactoryTest.php.

◆ testClosureExpansionDisabled()

ObjectFactoryTest::testClosureExpansionDisabled ( )

◆ testClosureExpansionEnabled()

ObjectFactoryTest::testClosureExpansionEnabled ( )

◆ testConstructClassInstance()

ObjectFactoryTest::testConstructClassInstance (   $args)

ObjectFactory::constructClassInstance provideConstructClassInstance.

Definition at line 134 of file ObjectFactoryTest.php.

References $args, and ObjectFactory\constructClassInstance().

◆ testGetObjectFromClass()

ObjectFactoryTest::testGetObjectFromClass (   $args)

ObjectFactory::getObjectFromSpec provideConstructClassInstance.

Definition at line 122 of file ObjectFactoryTest.php.

References $args, and ObjectFactory\getObjectFromSpec().

◆ testGetObjectFromFactory()

ObjectFactoryTest::testGetObjectFromFactory ( )

◆ testGetObjectFromInvalid()

ObjectFactoryTest::testGetObjectFromInvalid ( )

ObjectFactory::getObjectFromSpec InvalidArgumentException.

Definition at line 110 of file ObjectFactoryTest.php.

References $args, and ObjectFactory\getObjectFromSpec().

◆ testNamedArgs()

ObjectFactoryTest::testNamedArgs ( )

ObjectFactory::constructClassInstance InvalidArgumentException.

Definition at line 163 of file ObjectFactoryTest.php.

References $args, and ObjectFactory\constructClassInstance().


The documentation for this class was generated from the following file: