Skip to content

Commit 2fbad51

Browse files
Add test for "--text php://stdout"
1 parent 3c748ba commit 2fbad51

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
--TEST--
2+
phpcov merge --text php://stdout ../../fixture/example/coverage
3+
--INI--
4+
xdebug.overload_var_dump=0
5+
--FILE--
6+
<?php declare(strict_types=1);
7+
require __DIR__ . '/../../../vendor/autoload.php';
8+
9+
$_SERVER['argv'][1] = 'merge';
10+
$_SERVER['argv'][2] = '--text';
11+
$_SERVER['argv'][3] = 'php://stdout';
12+
$_SERVER['argv'][4] = __DIR__ . '/../../fixture/example/coverage';
13+
14+
var_dump((new SebastianBergmann\PHPCOV\Application)->run($_SERVER['argv']));
15+
--EXPECTF--
16+
phpcov %s by Sebastian Bergmann.
17+
18+
Generating code coverage report in text format ...
19+
20+
Code Coverage Report:
21+
%s
22+
23+
Summary:
24+
Classes: 100.00% (1/1)
25+
Methods: 100.00% (2/2)
26+
Lines: 66.67% (2/3)
27+
28+
SebastianBergmann\PHPCOV\TestFixture\Greeter
29+
Methods: 100.00% ( 2/ 2) Lines: 100.00% ( 2/ 2)

0 commit comments

Comments
 (0)