PhroznTest\Outputter\PlainOutputterTest::testStdErrWithResource PHP Method

testStdErrWithResource() public method

    public function testStdErrWithResource()
    {
        $fp = tmpfile();
        define('STDERR', $fp);
        $outputter = new Outputter();
        $outputter->stderr('sending output', '');
        rewind($fp);
        $contents = fread($fp, 8096);
        fclose($fp);
        $this->assertSame('sending output', trim($contents));
    }