27 $this->markTestSkipped(
'Should not be executed in HHVM context.');
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');
45 $this->markTestSkipped(
'Should be executed in HHVM context.');
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');
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');
testFindWithHHVM()
tests find() with the env var / constant PHP_BINARY with HHVM.
An executable finder specifically designed for the PHP executable.
testFindArguments()
tests find() with the env var PHP_PATH.
testFind()
tests find() with the constant PHP_BINARY.
Create styles array
The data for the language used.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'