File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+ /*
3+ * This file is part of Aplus Framework CLI Library.
4+ *
5+ * (c) Natan Felles <natanfelles@gmail.com>
6+ *
7+ * For the full copyright and license information, please view the LICENSE
8+ * file that was distributed with this source code.
9+ */
10+ namespace Tests \CLI \Streams ;
11+
12+ use Framework \CLI \Streams \Stderr ;
13+ use Framework \CLI \Streams \Stdout ;
14+ use PHPUnit \Framework \TestCase ;
15+
16+ /**
17+ * @runTestsInSeparateProcesses
18+ */
19+ final class FilterStreamTest extends TestCase
20+ {
21+ public function testConflicts () : void
22+ {
23+ Stderr::init ();
24+ Stdout::init ();
25+ \fwrite (\STDERR , 'err ' );
26+ \fwrite (\STDOUT , 'out ' );
27+ self ::assertSame ('err ' , Stderr::getContents ());
28+ self ::assertSame ('out ' , Stdout::getContents ());
29+ }
30+ }
You can’t perform that action at this time.
0 commit comments