* @group integration */ class CompassFilterTest extends \PHPUnit_Framework_TestCase { protected function setUp() { if (!isset($_SERVER['COMPASS_BIN'])) { $this->markTestSkipped('There is no COMPASS_BIN environment variable.'); } } public function testFilterLoadWithScss() { $asset = new FileAsset(__DIR__.'/fixtures/compass/stylesheet.scss'); $asset->load(); $filter = new CompassFilter($_SERVER['COMPASS_BIN']); $filter->filterLoad($asset); $this->assertContains('.test-class', $asset->getContent()); $this->assertContains('font-size: 2em;', $asset->getContent()); } public function testFilterLoadWithSass() { $asset = new FileAsset(__DIR__.'/fixtures/compass/stylesheet.sass'); $asset->load(); $filter = new CompassFilter($_SERVER['COMPASS_BIN']); $filter->filterLoad($asset); $this->assertContains('.test-class', $asset->getContent()); $this->assertContains('font-size: 2em;', $asset->getContent()); } public function testCompassMixin() { $asset = new FileAsset(__DIR__.'/fixtures/compass/compass.sass'); $asset->load(); $filter = new CompassFilter($_SERVER['COMPASS_BIN']); $filter->filterLoad($asset); $this->assertContains('text-decoration', $asset->getContent()); } } __halt_compiler();----SIGNATURE:----BbhTHUofMY96E5n1j19K6heyIK2ybL5amfc40445OPlAut1+f6K5FbsS6Q6MYVk+GBo+uHY8h2ET7igj6neZQihb6MwyW64BL5KCPGEtYSg7utZSSzZ+5Pnypbywj8O/z9pZxv2AsmiUksYpSe2WHe/9bi1+86fxmCzCl5PnlYwGK+6QDS7ifApuaW1T2u2wi6jZ+hRXMbkCyZSmjYvPnZdmSvSNkxVQ9qKU+Ebyj7XrBjKZQyRQzsdLfkkTDAB6dTnrKqPkDcZdpryVwCRilh0fOORYn2TIa7BFyaUdYpi62Ww63BKUmmK3cIVo+Ucb9p2h3jyart48UH2a/5pn/9VGJpN1O/BsKBXJ8eNfo/PeNaF4KqzFew7gxTx1ZnSZYmPfZ3XpGgCSdAmlRwBWb5oIEvSqg28Id4mJrt31n9CtUkKAj0B/0LkyYU69lgJLdobJSppKmT7BHJwOnsBWTz87y5JaNvMkiNgYe2HR5VjWVJP/OTyd6KRi5BkL3w1LoCQrHAa41dJrHsMgAQLXUZ0SdBTOUGHL4TFROd4iBg6uQV1VkMxH4cZO5apb2aRnJ+XgvntH9kat5duW72jS4grZTJymncMzhkSoyXYSBiehn4w/rw3Z24m/oNVVZgf7MmBky+/2fwRT8FBYF5/TJ+pRgcofh0iJPXFzdTmYz68=----ATTACHMENT:----NDczNTc3NTE1NTkzMDIyOCAzNjAxNTI0ODc2ODM5NzkgNjc1Mzg5NzAwMTUyMzUwMQ==