ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Twig_Tests_FactoryRuntimeLoaderTest Class Reference
+ Inheritance diagram for Twig_Tests_FactoryRuntimeLoaderTest:
+ Collaboration diagram for Twig_Tests_FactoryRuntimeLoaderTest:

Public Member Functions

 testLoad ()
 
 testLoadReturnsNullForUnmappedRuntime ()
 

Detailed Description

Definition at line 12 of file FactoryRuntimeLoaderTest.php.

Member Function Documentation

◆ testLoad()

Twig_Tests_FactoryRuntimeLoaderTest::testLoad ( )

Definition at line 14 of file FactoryRuntimeLoaderTest.php.

References $loader, and array.

15  {
16  $loader = new Twig_FactoryRuntimeLoader(array('stdClass' => 'getRuntime'));
17 
18  $this->assertInstanceOf('stdClass', $loader->load('stdClass'));
19  }
Lazy loads the runtime implementations for a Twig element.
Create styles array
The data for the language used.

◆ testLoadReturnsNullForUnmappedRuntime()

Twig_Tests_FactoryRuntimeLoaderTest::testLoadReturnsNullForUnmappedRuntime ( )

Definition at line 21 of file FactoryRuntimeLoaderTest.php.

References $loader.

22  {
24 
25  $this->assertNull($loader->load('stdClass'));
26  }
Lazy loads the runtime implementations for a Twig element.

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