mirror of
https://github.com/amphp/parallel.git
synced 2025-02-06 05:58:31 +01:00
Move test scripts to Fixtures directory
This commit is contained in:
parent
c77843fa77
commit
398989d41d
@ -12,7 +12,7 @@ class ProcessTest extends TestCase
|
||||
{
|
||||
Loop::run(function () {
|
||||
$process = new Process([
|
||||
__DIR__ . "/test-process.php",
|
||||
__DIR__ . "/Fixtures/test-process.php",
|
||||
"Test"
|
||||
]);
|
||||
yield $process->start();
|
||||
@ -27,7 +27,7 @@ class ProcessTest extends TestCase
|
||||
public function testFailingProcess()
|
||||
{
|
||||
Loop::run(function () {
|
||||
$process = new Process(__DIR__ . "/test-process.php");
|
||||
$process = new Process(__DIR__ . "/Fixtures/test-process.php");
|
||||
yield $process->start();
|
||||
yield $process->join();
|
||||
});
|
||||
@ -53,7 +53,7 @@ class ProcessTest extends TestCase
|
||||
public function testInvalidResult()
|
||||
{
|
||||
Loop::run(function () {
|
||||
$process = new Process(__DIR__ . "/invalid-result-process.php");
|
||||
$process = new Process(__DIR__ . "/Fixtures/invalid-result-process.php");
|
||||
yield $process->start();
|
||||
\var_dump(yield $process->join());
|
||||
});
|
||||
@ -66,7 +66,7 @@ class ProcessTest extends TestCase
|
||||
public function testNoCallbackReturned()
|
||||
{
|
||||
Loop::run(function () {
|
||||
$process = new Process(__DIR__ . "/no-callback-process.php");
|
||||
$process = new Process(__DIR__ . "/Fixtures/no-callback-process.php");
|
||||
yield $process->start();
|
||||
\var_dump(yield $process->join());
|
||||
});
|
||||
@ -79,7 +79,7 @@ class ProcessTest extends TestCase
|
||||
public function testParseError()
|
||||
{
|
||||
Loop::run(function () {
|
||||
$process = new Process(__DIR__ . "/parse-error-process.inc");
|
||||
$process = new Process(__DIR__ . "/Fixtures/parse-error-process.inc");
|
||||
yield $process->start();
|
||||
\var_dump(yield $process->join());
|
||||
});
|
||||
@ -93,7 +93,7 @@ class ProcessTest extends TestCase
|
||||
{
|
||||
Loop::run(function () {
|
||||
$process = new Process([
|
||||
__DIR__ . "/sleep-process.php",
|
||||
__DIR__ . "/Fixtures/sleep-process.php",
|
||||
5,
|
||||
]);
|
||||
yield $process->start();
|
||||
|
Loading…
x
Reference in New Issue
Block a user