Skip to content

Commit

Permalink
Failing test for CssUtils::filterCommentless bug refs kriswallsmith#758
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAsh committed Oct 5, 2015
1 parent 37bcae1 commit 4574167
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions tests/Assetic/Test/Util/CssUtilsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,20 @@ public function testExtractImports()

public function testFilterCommentless()
{
$content = 'A/*B*/C/*D*/E';
$content = <<<EOF
@import 'some/*-dir-*/file.jpg';
@import "sprites/*.png";
/* some comment */
.foo {font-family: /*"*/"*/any";}
EOF;
$expected = <<<EOF
@import 'some/*-dir-*/file.jpg';
@import "sprites/*.png";
.foo {font-family: "*/any";}
EOF;

$filtered = '';
$result = CssUtils::filterCommentless($content, function ($part) use (&$filtered) {
Expand All @@ -58,7 +71,7 @@ public function testFilterCommentless()
return $part;
});

$this->assertEquals('ACE', $filtered);
$this->assertEquals($expected, $filtered);
$this->assertEquals($content, $result);
}
}

0 comments on commit 4574167

Please sign in to comment.