1--TEST-- 2GH-2811: expectExceptionMessage() does not work without expectException() 3--FILE-- 4<?php 5$_SERVER['argv'][1] = '--no-configuration'; 6$_SERVER['argv'][2] = 'Issue2811Test'; 7$_SERVER['argv'][3] = __DIR__ . '/2811/Issue2811Test.php'; 8 9require __DIR__ . '/../../bootstrap.php'; 10 11PHPUnit_TextUI_Command::main(); 12?> 13--EXPECTF-- 14PHPUnit %s by Sebastian Bergmann and contributors. 15 16. 1 / 1 (100%) 17 18Time: %s, Memory: %s 19 20OK (1 test, 2 assertions) 21