◆ testFind()
Symfony\Component\Process\Tests\PhpExecutableFinderTest::testFind |
( |
| ) |
|
tests find() with the constant PHP_BINARY.
Definition at line 24 of file PhpExecutableFinderTest.php.
References defined.
27 $this->markTestSkipped(
'Should not be executed in HHVM context.');
30 $f =
new PhpExecutableFinder();
32 $current = PHP_BINARY;
33 $args =
'phpdbg' === PHP_SAPI ?
' -qrr' :
'';
35 $this->assertEquals($current.$args, $f->find(),
'::find() returns the executable PHP');
36 $this->assertEquals($current, $f->find(
false),
'::find() returns the executable PHP');
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ testFindArguments()
Symfony\Component\Process\Tests\PhpExecutableFinderTest::testFindArguments |
( |
| ) |
|
tests find() with the env var PHP_PATH.
Definition at line 59 of file PhpExecutableFinderTest.php.
References array, and defined.
61 $f =
new PhpExecutableFinder();
64 $this->assertEquals($f->findArguments(),
array(
'--php'),
'::findArguments() returns HHVM arguments');
65 } elseif (
'phpdbg' === PHP_SAPI) {
66 $this->assertEquals($f->findArguments(),
array(
'-qrr'),
'::findArguments() returns phpdbg arguments');
68 $this->assertEquals($f->findArguments(),
array(),
'::findArguments() returns no arguments');
Create styles array
The data for the language used.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ testFindWithHHVM()
Symfony\Component\Process\Tests\PhpExecutableFinderTest::testFindWithHHVM |
( |
| ) |
|
tests find() with the env var / constant PHP_BINARY with HHVM.
Definition at line 42 of file PhpExecutableFinderTest.php.
References defined.
45 $this->markTestSkipped(
'Should be executed in HHVM context.');
48 $f =
new PhpExecutableFinder();
50 $current = getenv(
'PHP_BINARY') ?: PHP_BINARY;
52 $this->assertEquals($current.
' --php', $f->find(),
'::find() returns the executable PHP');
53 $this->assertEquals($current, $f->find(
false),
'::find() returns the executable PHP');
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
The documentation for this class was generated from the following file: