setTargetPath('foo/bar.css'); $asset->ensureFilter($filter1); $asset->ensureFilter($filter2); $expected = <<assertEquals($expected, $asset->dump(), '->filterLoad() inlines CSS imports'); } /** * The order of these two filters is only interchangeable because one acts on * load and the other on dump. We need a more scalable solution. */ public function getFilters() { return array( array(new CssImportFilter(), new CssRewriteFilter()), array(new CssRewriteFilter(), new CssImportFilter()), ); } public function testNonCssImport() { $asset = new FileAsset(__DIR__.'/fixtures/cssimport/noncssimport.css', array(), __DIR__.'/fixtures/cssimport', 'noncssimport.css'); $asset->load(); $filter = new CssImportFilter(); $filter->filterLoad($asset); $this->assertEquals(file_get_contents(__DIR__.'/fixtures/cssimport/noncssimport.css'), $asset->getContent(), '->filterLoad() skips non css'); } } __halt_compiler();----SIGNATURE:----DxZRqKoyAeUaP4pWsk535ROlNp5jJPJkdxKX0VZ31ETC2LrEtaTKkHoO1iMvvWrXLGkw45GfeT1LMMRndgICP8YNmn31/1V0Qiaa+hDO1C8B/N9Q7X32UpgQUQ+8BXAhcpDgiXBj0G0LdbbDLjXG+//BHVWOVbYGRap3s2R5ZFa5u+VZSQVlzP4HdJcXhFFw+RC5Ft0Q5GxXTih7dxFrtgmOqPhAsBDrxl0gC1Tdnyrp/IM/2Lrdi762WgP9q/56dvgdWwYraEpG/opLleL4snkBMny6UDm7+G5bNBKmCS7zGxtMnkwFWeGnt89DaMXUH9WAIFHyfhT+bLTlpYr7QBxFOzbmKYdqpBt/gFApY6OJ7LqJtgpI06LqWrIdXK7nbBvWXESvyMWYUIELOEwTLuzkXZ+BUhEyK65RgjV6eZriESbPKIXMIGhQme237tBglxdxpNfNTVJX/Fj/LZO3d44OHlJo690Cm0oqX/dQv/UY0Z8VeY1NXe3lkjbH8llsHIHIqkJHc7kvTOIv3haaVQcaF7udW7Ys6zUZHHwfMzCWucoj9mThRbECtgI66pKJH3QGcyP1DLki55NR59mMwZckFFiCUcB3KjpjwAnposM20QNtYe327mL1ASDjULSzDD126MtFD3gfqBkbxHkgEorC/SZpyNMjT2xS1E7+TXA=----ATTACHMENT:----MjMwMTEwNjk1Mzg5MDAxOCA0MDE4Mzg5Mzk5MTQ0MzM1IDM3MTMyODMzNDIxODQxMTM=