ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
RunTimeTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use PHPUnit\Framework\TestCase;
22
23
class
RunTimeTest
extends
TestCase
24
{
25
private
function
markTestSkippedWhenNoRunningOnPhp
(): void
26
{
27
if
(!defined(
'HHVM_VERSION'
)) {
28
return
;
29
}
30
31
$this->markTestSkipped(
'Cannot run on HHVM'
);
32
}
33
34
public
function
testGetVersionReturnsPhpVersionWhenRunningPhp
(): void
35
{
36
$this->
markTestSkippedWhenNoRunningOnPhp
();
37
38
$this->assertSame(PHP_VERSION,
ilRuntime::getInstance
()->getVersion());
39
}
40
41
public
function
testGetNameReturnsPhpWhenRunningOnPhp
(): void
42
{
43
$this->
markTestSkippedWhenNoRunningOnPhp
();
44
45
$this->assertSame(
'PHP'
,
ilRuntime::getInstance
()->getName());
46
}
47
48
public
function
testBinaryCanBeRetrieved
(): void
49
{
50
$this->assertNotEmpty(
ilRuntime::getInstance
()->getBinary());
51
}
52
}
RunTimeTest
Definition:
RunTimeTest.php:24
RunTimeTest\markTestSkippedWhenNoRunningOnPhp
markTestSkippedWhenNoRunningOnPhp()
Definition:
RunTimeTest.php:25
RunTimeTest\testGetNameReturnsPhpWhenRunningOnPhp
testGetNameReturnsPhpWhenRunningOnPhp()
Definition:
RunTimeTest.php:41
RunTimeTest\testBinaryCanBeRetrieved
testBinaryCanBeRetrieved()
Definition:
RunTimeTest.php:48
RunTimeTest\testGetVersionReturnsPhpVersionWhenRunningPhp
testGetVersionReturnsPhpVersionWhenRunningPhp()
Definition:
RunTimeTest.php:34
ilRuntime\getInstance
static getInstance()
Definition:
class.ilRuntime.php:32
components
ILIAS
Environment
tests
RunTimeTest.php
Generated on Sat Oct 18 2025 23:02:58 for ILIAS by
1.9.4 (using
Doxyfile
)