ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

Referenced by testGetNameReturnsPhpWhenRunningOnPhp(), and testGetVersionReturnsPhpVersionWhenRunningPhp().

25  : void
26  {
27  if (!defined('HHVM_VERSION')) {
28  return;
29  }
30 
31  $this->markTestSkipped('Cannot run on HHVM');
32  }
+ Here is the caller graph for this function:

◆ testBinaryCanBeRetrieved()

RunTimeTest::testBinaryCanBeRetrieved ( )

Definition at line 48 of file RunTimeTest.php.

References ilRuntime\getInstance().

48  : void
49  {
50  $this->assertNotEmpty(ilRuntime::getInstance()->getBinary());
51  }
static getInstance()
+ Here is the call graph for this function:

◆ testGetNameReturnsPhpWhenRunningOnPhp()

RunTimeTest::testGetNameReturnsPhpWhenRunningOnPhp ( )

Definition at line 41 of file RunTimeTest.php.

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

41  : void
42  {
44 
45  $this->assertSame('PHP', ilRuntime::getInstance()->getName());
46  }
static getInstance()
markTestSkippedWhenNoRunningOnPhp()
Definition: RunTimeTest.php:25
+ Here is the call graph for this function:

◆ testGetVersionReturnsPhpVersionWhenRunningPhp()

RunTimeTest::testGetVersionReturnsPhpVersionWhenRunningPhp ( )

Definition at line 34 of file RunTimeTest.php.

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

34  : void
35  {
37 
38  $this->assertSame(PHP_VERSION, ilRuntime::getInstance()->getVersion());
39  }
static getInstance()
markTestSkippedWhenNoRunningOnPhp()
Definition: RunTimeTest.php:25
+ Here is the call graph for this function:

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