public function testStreamEof()
{
file_put_contents('zend.view://Stream', "test\ntest\ntest");
$fp = fopen('zend.view://Stream', 'a+');
do {
$line = fgets($fp);
} while (!feof($fp));
$this->assertTrue(feof($fp));
}