コード例 #1
0
ファイル: AppTest.php プロジェクト: arteam/orders-system
 public static function setUpBeforeClass()
 {
     print "\nStarting a web server...";
     $dirname = dirname(__DIR__);
     exec("cd {$dirname}/public && php -S localhost:8000 > /dev/null 2>&1 & echo \$!", AppTest::$pidArray);
     // Wait while the process starts up
     while (!AppTest::isProcessRunning(AppTest::$pidArray[0])) {
     }
     print "\nStarted\n";
 }