REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.16 KB
Close
/opt/cloudlinux/alt-php53/root/usr/share/pear/test/Translation/Symfony/Component/Translation/Tests/IntervalTest.php
Text
Base64
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Translation\Tests; use Symfony\Component\Translation\Interval; class IntervalTest extends \PHPUnit_Framework_TestCase { /** * @dataProvider getTests */ public function testTest($expected, $number, $interval) { $this->assertEquals($expected, Interval::test($number, $interval)); } /** * @expectedException \InvalidArgumentException */ public function testTestException() { Interval::test(1, 'foobar'); } public function getTests() { return array( array(true, 3, '{1,2, 3 ,4}'), array(false, 10, '{1,2, 3 ,4}'), array(false, 3, '[1,2]'), array(true, 1, '[1,2]'), array(true, 2, '[1,2]'), array(false, 1, ']1,2['), array(false, 2, ']1,2['), array(true, log(0), '[-Inf,2['), array(true, -log(0), '[-2,+Inf]'), ); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 4 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Catalogue
DIR
-
drwxr-xr-x
2024-03-03 22:55:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Dumper
DIR
-
drwxr-xr-x
2024-03-03 22:55:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fixtures
DIR
-
drwxr-xr-x
2024-03-03 22:55:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Loader
DIR
-
drwxr-xr-x
2024-03-03 22:55:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
IdentityTranslatorTest.php
3.08 KB
lrw-r--r--
2019-12-18 11:20:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
IntervalTest.php
1.16 KB
lrw-r--r--
2019-12-18 11:20:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
MessageCatalogueTest.php
7.78 KB
lrw-r--r--
2019-12-18 11:20:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
MessageSelectorTest.php
5.03 KB
lrw-r--r--
2019-12-18 11:20:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PluralizationRulesTest.php
3.97 KB
lrw-r--r--
2019-12-18 11:20:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
TranslatorTest.php
12.37 KB
lrw-r--r--
2019-12-18 11:20:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).