Skip to content

Commit

Permalink
Fixed TravisTest output
Browse files Browse the repository at this point in the history
  • Loading branch information
shoghicp committed Sep 7, 2014
1 parent 4f7a6a0 commit 7d387fe
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/TravisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,20 @@
*
*/

$server = proc_open("php src/pocketmine/PocketMine.php --no-wizard --disable-readline", [
$server = proc_open(PHP_BINARY . " src/pocketmine/PocketMine.php --no-wizard --disable-readline", [
0 => ["pipe", "r"],
1 => ["file", "php://stdout", "w"],
1 => ["pipe", "w"],
2 => ["pipe", "w"]
], $pipes);

fwrite($pipes[0], "version\nmakeserver\nstop\n\n");

while(!feof($pipes[1])){
echo fgets($pipes[1]);
}

fclose($pipes[0]);
fclose($pipes[1]);
fclose($pipes[2]);

echo "\n\nReturn value: ". proc_close($server) ."\n";
Expand Down

0 comments on commit 7d387fe

Please sign in to comment.