/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
mikey179
/
vfsstream
/
src
/
test
/
php
/
org
/
bovigo
/
vfs
/
/opt/cpanel/ea-wappspector/vendor/mikey179/vfsstream/src/test/php/org/bovigo/vfs
mkdir
upload
Name
Size
Mode
Actions
content/
-
0755
rm
proxy/
-
0755
rm
visitor/
-
0755
rm
DirectoryIterationTestCase.php
11778
0644
edit
dl
rm
FilenameTestCase.php
2240
0644
edit
dl
rm
Issue104TestCase.php
1652
0644
edit
dl
rm
PermissionsTestCase.php
3365
0644
edit
dl
rm
QuotaTestCase.php
1545
0644
edit
dl
rm
UnlinkTestCase.php
1760
0644
edit
dl
rm
vfsStreamAbstractContentTestCase.php
47236
0644
edit
dl
rm
vfsStreamBlockTestCase.php
2218
0644
edit
dl
rm
vfsStreamContainerIteratorTestCase.php
2985
0644
edit
dl
rm
vfsStreamDirectoryIssue18TestCase.php
2306
0644
edit
dl
rm
vfsStreamDirectoryIssue134TestCase.php
1432
0644
edit
dl
rm
vfsStreamDirectoryTestCase.php
11246
0644
edit
dl
rm
vfsStreamExLockTestCase.php
1561
0644
edit
dl
rm
vfsStreamFileTestCase.php
11451
0644
edit
dl
rm
vfsStreamGlobTestCase.php
675
0644
edit
dl
rm
vfsStreamResolveIncludePathTestCase.php
1452
0644
edit
dl
rm
vfsStreamTestCase.php
25390
0644
edit
dl
rm
vfsStreamUmaskTestCase.php
4826
0644
edit
dl
rm
vfsStreamWrapperAlreadyRegisteredTestCase.php
1521
0644
edit
dl
rm
vfsStreamWrapperBaseTestCase.php
2548
0644
edit
dl
rm
vfsStreamWrapperDirSeparatorTestCase.php
1710
0644
edit
dl
rm
vfsStreamWrapperDirTestCase.php
15458
0644
edit
dl
rm
vfsStreamWrapperFileTestCase.php
13479
0644
edit
dl
rm
vfsStreamWrapperFileTimesTestCase.php
11513
0644
edit
dl
rm
vfsStreamWrapperFlockTestCase.php
14546
0644
edit
dl
rm
vfsStreamWrapperLargeFileTestCase.php
1936
0644
edit
dl
rm
vfsStreamWrapperQuotaTestCase.php
6672
0644
edit
dl
rm
vfsStreamWrapperSetOptionTestCase.php
1676
0644
edit
dl
rm
vfsStreamWrapperStreamSelectTestCase.php
1048
0644
edit
dl
rm
vfsStreamWrapperTestCase.php
27410
0644
edit
dl
rm
vfsStreamWrapperUnregisterTestCase.php
1958
0644
edit
dl
rm
vfsStreamWrapperWithoutRootTestCase.php
1265
0644
edit
dl
rm
vfsStreamZipTestCase.php
1585
0644
edit
dl
rm
Edit:
/opt/cpanel/ea-wappspector/vendor/mikey179/vfsstream/src/test/php/org/bovigo/vfs/QuotaTestCase.php
(1545B)
<?php /** * This file is part of vfsStream. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @package org\bovigo\vfs */ namespace org\bovigo\vfs; /** * Test for org\bovigo\vfs\Quota. * * @group issue_35 */ class QuotaTestCase extends \BC_PHPUnit_Framework_TestCase { /** * instance to test * * @type Quota */ private $quota; /** * set up test environment */ public function setUp(): void { $this->quota = new Quota(10); } /** * @test */ public function unlimitedQuotaIsNotLimited() { $this->assertFalse(Quota::unlimited()->isLimited()); } /** * @test */ public function limitedQuotaIsLimited() { $this->assertTrue($this->quota->isLimited()); } /** * @test */ public function unlimitedQuotaHasAlwaysSpaceLeft() { $this->assertEquals(303, Quota::unlimited()->spaceLeft(303)); } /** * @test */ public function hasNoSpaceLeftWhenUsedSpaceIsLargerThanQuota() { $this->assertEquals(0, $this->quota->spaceLeft(11)); } /** * @test */ public function hasNoSpaceLeftWhenUsedSpaceIsEqualToQuota() { $this->assertEquals(0, $this->quota->spaceLeft(10)); } /** * @test */ public function hasSpaceLeftWhenUsedSpaceIsLowerThanQuota() { $this->assertEquals(1, $this->quota->spaceLeft(9)); } }
Save
cmd:
run