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

setsPointerToStartWhenOpenedWithModeCplus() public method

    public function setsPointerToStartWhenOpenedWithModeCplus()
    {
        $vfsFile = vfsStream::url('foo/overwrite.txt');
        file_put_contents($vfsFile, 'test');
        $fp = fopen($vfsFile, 'cb+');
        $this->assertEquals(0, ftell($fp));
        fclose($fp);
    }