1--TEST-- 2GH-244: Expected Exception should support string codes 3--FILE-- 4<?php 5$_SERVER['argv'][1] = '--no-configuration'; 6$_SERVER['argv'][2] = '--process-isolation'; 7$_SERVER['argv'][3] = 'Issue244Test'; 8$_SERVER['argv'][4] = __DIR__ . '/244/Issue244Test.php'; 9 10require __DIR__ . '/../../bootstrap.php'; 11PHPUnit_TextUI_Command::main(); 12?> 13--EXPECTF-- 14PHPUnit %s by Sebastian Bergmann and contributors. 15 16.FFF 4 / 4 (100%) 17 18Time: %s, Memory: %s 19 20There were 3 failures: 21 221) Issue244Test::testFails 23Failed asserting that '123StringCode' is equal to expected exception code 'OtherString'. 24 252) Issue244Test::testFailsTooIfExpectationIsANumber 26Failed asserting that '123StringCode' is equal to expected exception code 123. 27 283) Issue244Test::testFailsTooIfExceptionCodeIsANumber 29Failed asserting that 123 is equal to expected exception code '123String'. 30 31FAILURES! 32Tests: 4, Assertions: 8, Failures: 3. 33