コード例 #1
0
ファイル: PhpSpecTest.php プロジェクト: phpguard/listen
 /**
  * @throws \Exception
  * @group phpspec
  */
 public function testShouldPassPhpSpecTest()
 {
     try {
         $app = new Application('phpguard-listen-spec');
         $app->setAutoExit(false);
         $app->setCatchExceptions(true);
         $input = new StringInput('run --ansi');
         $return = $app->run($input);
         $this->assertEquals(0, $return, 'PhpGuard Spec Testing is not passed.');
     } catch (\Exception $e) {
         throw $e;
     }
 }