-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstates-test.phpt
29 lines (26 loc) · 1.31 KB
/
states-test.phpt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--TEST--
phpunit -c tests/_files/phpunit.xml tests/_files/PrinterStatesTest.php
--SKIPIF--
<?php
require_once(dirname(dirname(__FILE__))).'/vendor/autoload.php';
if (version_compare(PHPUnit\Runner\Version::id(), '7.0.0', '>=') === false) echo 'skip';
?>
--FILE--
<?php
$_SERVER['TERM'] = 'xterm';
$_SERVER['argv'][1] = '-c';
$_SERVER['argv'][2] = dirname(__FILE__).'/_files/phpunit.xml';
$_SERVER['argv'][3] = '--colors=always';
$_SERVER['argv'][4] = dirname(__FILE__).'/_files/PrinterStatesTest.php';
require_once(dirname(dirname(__FILE__))).'/vendor/autoload.php';
PHPUnit\TextUI\Command::main();
?>
--EXPECTF--
%%VERSION%%
::error file=test/_files/PrinterStatesTest.php,line=17::strpos() expects at least 2 parameters, 0 given
::error file=test/_files/PrinterStatesTest.php,line=22::Error: Call to undefined method PrinterStatesTest::isMissing()
::warning file=test/_files/PrinterStatesTest.php,line=32::This is a test warning
::error file=test/_files/PrinterStatesTest.php,line=12::Failed asserting that false is true.
::error file=test/_files/PrinterStatesTest.php,line=54::Failed asserting that false is true.
::warning file=test/_files/PrinterStatesTest.php,line=37::This is a risky test
::warning file=test/_files/PrinterStatesTest.php,line=40::This test did not perform any assertions%0A%0Atest/_files/PrinterStatesTest.php:40