org\bovigo\vfs\vfsStreamWrapperFileTestCase::canNotReadFromWriteOnlyFileWithModeA PHP Method

canNotReadFromWriteOnlyFileWithModeA() public method

    public function canNotReadFromWriteOnlyFileWithModeA()
    {
        $fp = fopen($this->baz2URL, 'ab');
        $this->assertEquals('', fread($fp, 4096));
        $this->assertEquals(3, fwrite($fp, 'foo'));
        fseek($fp, 0);
        $this->assertEquals('', fread($fp, 4096));
        fclose($fp);
        $this->assertEquals('baz2foo', file_get_contents($this->baz2URL));
    }