public function testStdErrWithResource()
{
$fp = fopen('/tmp/stderr', 'w+');
define('STDERR', $fp);
fclose($fp);
$outputter = new Outputter();
$outputter->stderr('sending output', '');
$this->assertSame('sending output', trim(file_get_contents('/tmp/stderr')));
}