You are here

public function StringBasedFileContentTestCase::truncateToGreaterSizeIncreasesSize in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/content/StringBasedFileContentTestCase.php \org\bovigo\vfs\content\StringBasedFileContentTestCase::truncateToGreaterSizeIncreasesSize()

@test @group issue_33 @since 1.1.0

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/content/StringBasedFileContentTestCase.php, line 225

Class

StringBasedFileContentTestCase
Test for org\bovigo\vfs\content\StringBasedFileContent.

Namespace

org\bovigo\vfs\content

Code

public function truncateToGreaterSizeIncreasesSize() {
  $this
    ->assertTrue($this->stringBasedFileContent
    ->truncate(25));
  $this
    ->assertEquals(25, $this->stringBasedFileContent
    ->size());
}