Seditio Source
Root |
./othercms/croogo-4.0.7/vendor/phpunit/phpunit/tests/end-to-end/regression/GitHub/445/Issue445Test.php
<?php
use PHPUnit\Framework\TestCase;

class
Issue445Test extends TestCase
{
    public function
testOutputWithExpectationBefore()
    {
       
$this->expectOutputString('test');
        print
'test';
    }

    public function
testOutputWithExpectationAfter()
    {
        print
'test';
       
$this->expectOutputString('test');
    }

    public function
testNotMatchingOutput()
    {
        print
'bar';
       
$this->expectOutputString('foo');
    }
}