Seditio Source
Root |
./othercms/croogo-4.0.7/vendor/phpunit/phpunit/tests/_files/OutputTestCase.php
<?php
use PHPUnit\Framework\TestCase;

class
OutputTestCase extends TestCase
{
    public function
testExpectOutputStringFooActualFoo()
    {
       
$this->expectOutputString('foo');
        print
'foo';
    }

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

    public function
testExpectOutputRegexFooActualFoo()
    {
       
$this->expectOutputRegex('/foo/');
        print
'foo';
    }

    public function
testExpectOutputRegexFooActualBar()
    {
       
$this->expectOutputRegex('/foo/');
        print
'bar';
    }
}