You are here

public function vfsStreamWrapperQuotaTestCase::writeLessThanQuotaWritesEverything in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperQuotaTestCase.php \org\bovigo\vfs\vfsStreamWrapperQuotaTestCase::writeLessThanQuotaWritesEverything()

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperQuotaTestCase.php, line 37

Class

vfsStreamWrapperQuotaTestCase
Test for quota related functionality of org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function writeLessThanQuotaWritesEverything() {
  $this
    ->assertEquals(9, file_put_contents(vfsStream::url('root/file.txt'), '123456789'));
  $this
    ->assertEquals('123456789', $this->root
    ->getChild('file.txt')
    ->getContent());
}