REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.25 KB
Close
/opt/alt/php54/usr/share/pear/test/Templating/Symfony/Component/Templating/Tests/Helper/CoreAssetsHelperTest.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\Templating\Tests\Helper; use Symfony\Component\Templating\Helper\CoreAssetsHelper; class CoreAssetsHelperTest extends \PHPUnit_Framework_TestCase { protected $package; protected function setUp() { $this->package = $this->getMock('Symfony\Component\Templating\Asset\PackageInterface'); } protected function tearDown() { $this->package = null; } public function testAddGetPackage() { $helper = new CoreAssetsHelper($this->package); $helper->addPackage('foo', $this->package); $this->assertSame($this->package, $helper->getPackage('foo')); } public function testGetNonexistingPackage() { $helper = new CoreAssetsHelper($this->package); $this->setExpectedException('\InvalidArgumentException'); $helper->getPackage('foo'); } public function testGetHelperName() { $helper = new CoreAssetsHelper($this->package); $this->assertEquals('assets', $helper->getName()); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
AssetsHelperTest.php
3.42 KB
lrw-r--r--
2019-12-18 11:22:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CoreAssetsHelperTest.php
1.25 KB
lrw-r--r--
2019-12-18 11:22:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
HelperTest.php
781 B
lrw-r--r--
2019-12-18 11:22:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
SlotsHelperTest.php
3.27 KB
lrw-r--r--
2019-12-18 11:22:58
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).