ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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.

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.

◆ testLoadReturnsNullForUnmappedRuntime()

Twig_Tests_FactoryRuntimeLoaderTest::testLoadReturnsNullForUnmappedRuntime ( )

Definition at line 21 of file FactoryRuntimeLoaderTest.php.

22  {
23  $loader = new Twig_FactoryRuntimeLoader();
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: