org\bovigo\vfs\vfsStreamWrapperQuotaTestCase::writeMoreThanQotaWritesOnlyUpToQuota PHP Метод

writeMoreThanQotaWritesOnlyUpToQuota() публичный Метод

    public function writeMoreThanQotaWritesOnlyUpToQuota()
    {
        try {
            file_put_contents(vfsStream::url('root/file.txt'), '12345678901');
        } catch (\PHPUnit_Framework_Error $e) {
            $this->assertEquals('file_put_contents(): Only 10 of 11 bytes written, possibly out of free disk space', $e->getMessage());
        }
        $this->assertEquals('1234567890', $this->root->getChild('file.txt')->getContent());
    }