Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / Regression / GitHub / 1351.phpt
1 --TEST--
2 GH-1351: Test result does not serialize test class in process isolation
3 --SKIPIF--
4 <?php
5 if (!extension_loaded('pdo') || !in_array('sqlite', PDO::getAvailableDrivers())) {
6     print 'skip: PDO_SQLITE is required';
7 }
8 ?>
9 --FILE--
10 <?php
11
12 $_SERVER['argv'][1] = '--no-configuration';
13 $_SERVER['argv'][2] = '--process-isolation';
14 $_SERVER['argv'][3] = 'Issue1351Test';
15 $_SERVER['argv'][4] = __DIR__ . '/1351/Issue1351Test.php';
16
17 require __DIR__ . '/../../bootstrap.php';
18 PHPUnit_TextUI_Command::main();
19 ?>
20 --EXPECTF--
21 PHPUnit %s by Sebastian Bergmann and contributors.
22
23 F.E.E
24
25 Time: %s, Memory: %s
26
27 There were 2 errors:
28
29 1) Issue1351Test::testExceptionPre
30 RuntimeException: Expected rethrown exception.
31 %A
32 Caused by
33 LogicException: Expected exception.
34 %A
35
36 2) Issue1351Test::testPhpCoreLanguageException
37 PDOException: SQLSTATE[HY000]: General error: 1 no such table: php_wtf
38 %A
39
40 --
41
42 There was 1 failure:
43
44 1) Issue1351Test::testFailurePre
45 Expected failure.
46 %A
47 FAILURES!
48 Tests: 5, Assertions: 5, Errors: 2, Failures: 1.