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