gluon-web-remote

Web remote Administration for big size of gluon routers
git clone git://archive.git.mtrnord.blog/MTRNord/gluon-web-remote.git
Log | Files | Refs | README

1348.phpt (774B)


      1 --TEST--
      2 GH-1348: STDOUT/STDERR IO streams should exist in process isolation
      3 --SKIPIF--
      4 <?php
      5 if (defined('HHVM_VERSION')) {
      6     print 'skip: PHP runtime required';
      7 }
      8 ?>
      9 --FILE--
     10 <?php
     11 
     12 $_SERVER['argv'][1] = '--no-configuration';
     13 $_SERVER['argv'][]  = '--report-useless-tests';
     14 $_SERVER['argv'][]  = '--process-isolation';
     15 $_SERVER['argv'][]  = 'Issue1348Test';
     16 $_SERVER['argv'][]  = __DIR__ . '/1348/Issue1348Test.php';
     17 
     18 require __DIR__ . '/../../bootstrap.php';
     19 PHPUnit_TextUI_Command::main();
     20 ?>
     21 --EXPECTF--
     22 PHPUnit %s by Sebastian Bergmann and contributors.
     23 
     24 .
     25 STDOUT does not break test result
     26 E
     27 
     28 Time: %s, Memory: %sMb
     29 
     30 There was 1 error:
     31 
     32 1) Issue1348Test::testSTDERR
     33 PHPUnit_Framework_Exception: STDERR works as usual.
     34 
     35 FAILURES!
     36 Tests: 2, Assertions: 1, Errors: 1.