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

581.phpt (789B)


      1 --TEST--
      2 GH-581: PHPUnit_Util_Type::export adds extra newlines in Windows
      3 --FILE--
      4 <?php
      5 
      6 $_SERVER['argv'][1] = '--no-configuration';
      7 $_SERVER['argv'][2] = 'Issue581Test';
      8 $_SERVER['argv'][3] = dirname(__FILE__).'/581/Issue581Test.php';
      9 
     10 require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/PHPUnit/Autoload.php';
     11 PHPUnit_TextUI_Command::main();
     12 ?>
     13 --EXPECTF--
     14 PHPUnit %s by Sebastian Bergmann.
     15 
     16 F
     17 
     18 Time: %s, Memory: %sMb
     19 
     20 There was 1 failure:
     21 
     22 1) Issue581Test::testExportingObjectsDoesNotBreakWindowsLineFeeds
     23 Failed asserting that two objects are equal.
     24 --- Expected
     25 +++ Actual
     26 @@ @@
     27  stdClass Object (
     28      0 => 1
     29      1 => 2
     30      2 => 'Test\n'
     31      3 => 4
     32 -    4 => 5
     33 +    4 => 1
     34      5 => 6
     35      6 => 7
     36      7 => 8
     37  )
     38 
     39 %s:%i
     40 
     41 FAILURES!
     42 Tests: 1, Assertions: 1, Failures: 1.
     43