ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
RunTimeTest Class Reference
+ Inheritance diagram for RunTimeTest:
+ Collaboration diagram for RunTimeTest:

Public Member Functions

 testGetVersionReturnsPhpVersionWhenRunningPhp ()
 
 testGetNameReturnsPhpWhenRunningOnPhp ()
 
 testBinaryCanBeRetrieved ()
 

Private Member Functions

 markTestSkippedWhenNoRunningOnPhp ()
 

Detailed Description

Definition at line 23 of file RunTimeTest.php.

Member Function Documentation

◆ markTestSkippedWhenNoRunningOnPhp()

RunTimeTest::markTestSkippedWhenNoRunningOnPhp ( )
private

Definition at line 25 of file RunTimeTest.php.

25 : void
26 {
27 if (!defined('HHVM_VERSION')) {
28 return;
29 }
30
31 $this->markTestSkipped('Cannot run on HHVM');
32 }

Referenced by testGetNameReturnsPhpWhenRunningOnPhp(), and testGetVersionReturnsPhpVersionWhenRunningPhp().

+ Here is the caller graph for this function:

◆ testBinaryCanBeRetrieved()

RunTimeTest::testBinaryCanBeRetrieved ( )

Definition at line 48 of file RunTimeTest.php.

48 : void
49 {
50 $this->assertNotEmpty(ilRuntime::getInstance()->getBinary());
51 }
static getInstance()

References ilRuntime\getInstance().

+ Here is the call graph for this function:

◆ testGetNameReturnsPhpWhenRunningOnPhp()

RunTimeTest::testGetNameReturnsPhpWhenRunningOnPhp ( )

Definition at line 41 of file RunTimeTest.php.

41 : void
42 {
44
45 $this->assertSame('PHP', ilRuntime::getInstance()->getName());
46 }
markTestSkippedWhenNoRunningOnPhp()
Definition: RunTimeTest.php:25

References ilRuntime\getInstance(), and markTestSkippedWhenNoRunningOnPhp().

+ Here is the call graph for this function:

◆ testGetVersionReturnsPhpVersionWhenRunningPhp()

RunTimeTest::testGetVersionReturnsPhpVersionWhenRunningPhp ( )

Definition at line 34 of file RunTimeTest.php.

34 : void
35 {
37
38 $this->assertSame(PHP_VERSION, ilRuntime::getInstance()->getVersion());
39 }

References ilRuntime\getInstance(), and markTestSkippedWhenNoRunningOnPhp().

+ Here is the call graph for this function:

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