kekrozsak/vendor/kriswallsmith/assetic/tests/Assetic/Test/Filter/JSMinPlusFilterTest.php
Polonkai Gergely 082a0130c2 Initial commit with Symfony 2.1+Vendors
Signed-off-by: Gergely POLONKAI (W00d5t0ck) <polesz@w00d5t0ck.info>
2012-07-01 09:52:20 +02:00

40 lines
919 B
PHP

<?php
/*
* This file is part of the Assetic package, an OpenSky project.
*
* (c) 2010-2012 OpenSky Project Inc
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Assetic\Test\Filter;
use Assetic\Asset\FileAsset;
use Assetic\Filter\JSMinPlusFilter;
/**
* @group integration
*/
class JSMinPlusFilterTest extends \PHPUnit_Framework_TestCase
{
protected function setUp()
{
if (!class_exists('JSMinPlus')) {
$this->markTestSkipped('JSMinPlus is not installed.');
}
}
public function testRelativeSourceUrlImportImports()
{
$asset = new FileAsset(__DIR__.'/fixtures/jsmin/js.js');
$asset->load();
$filter = new JSMinPlusFilter();
$filter->filterDump($asset);
$this->assertEquals('var a="abc",bbb="u"', $asset->getContent());
}
}