Skip to content

Commit

Permalink
Fix child test (should have never worked)
Browse files Browse the repository at this point in the history
But it did because the child process output was "childTjs=" but this is incorrect and cannot be unserialized.
  • Loading branch information
MarcHagen committed Aug 29, 2024
1 parent ac545b6 commit b8fb228
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/ChildRuntimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ public function it_can_run()
$process->start();

$process->wait();
$output = unserialize(base64_decode($process->getOutput()));

$this->assertStringContainsString('child', $process->getOutput());
$this->assertIsArray($output);
$this->assertArrayHasKey('output', $output);
$this->assertStringContainsString('child', $output['output']);
}
}

0 comments on commit b8fb228

Please sign in to comment.