~tcuthbert/wordpress/openstack-objectstorage

« back to all changes in this revision

Viewing changes to vendor/phpunit/phpunit/tests/Regression/GitHub/1348.phpt

  • Committer: Jacek Nykis
  • Date: 2015-02-11 15:35:31 UTC
  • Revision ID: jacek.nykis@canonical.com-20150211153531-hmy6zi0ov2qfkl0b
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
--FILE--
 
9
<?php
 
10
 
 
11
$_SERVER['argv'][1] = '--no-configuration';
 
12
$_SERVER['argv'][] = '--strict';
 
13
$_SERVER['argv'][] = '--process-isolation';
 
14
$_SERVER['argv'][] = 'Issue1348Test';
 
15
$_SERVER['argv'][] = __DIR__ . '/1348/Issue1348Test.php';
 
16
 
 
17
require __DIR__ . '/../../bootstrap.php';
 
18
PHPUnit_TextUI_Command::main();
 
19
?>
 
20
--EXPECTF--
 
21
PHPUnit %s by Sebastian Bergmann.
 
22
 
 
23
.
 
24
STDOUT does not break test result
 
25
E
 
26
 
 
27
Time: %s, Memory: %sMb
 
28
 
 
29
There was 1 error:
 
30
 
 
31
1) Issue1348Test::testSTDERR
 
32
PHPUnit_Framework_Exception: STDERR works as usual.
 
33
 
 
34
FAILURES!
 
35
Tests: 2, Assertions: 1, Errors: 1.
 
 
b'\\ No newline at end of file'