1 | <?php |
||
29 | abstract class AbstractSelfTestCli extends AbstractSelfTest |
||
30 | { |
||
31 | /** |
||
32 | * The interpreter to use. |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | private $interpreter; |
||
37 | |||
38 | /** |
||
39 | * Check that the interpreter is available. |
||
40 | * |
||
41 | * @return bool |
||
42 | */ |
||
43 | protected function hasInterpreter() |
||
51 | |||
52 | /** |
||
53 | * Runs the passed test script through the php cli and returns the output. |
||
54 | * |
||
55 | * @param string $testScript The test script to run. |
||
56 | * |
||
57 | * @param string $arguments Optional cli arguments to use. |
||
58 | * |
||
59 | * @return null|string |
||
60 | */ |
||
61 | protected function testCliRuntime($testScript, $arguments = '') |
||
82 | } |
||
83 |