Skip to content

Commit 09ec621

Browse files
author
ju1ius
committed
addapted tests to master branch
1 parent fefacce commit 09ec621

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

tests/bugs/GH26_Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class GH26_Test extends PHPUnit_Framework_TestCase
1111
**/
1212
public function testMSFilters($sCss, $sExpected)
1313
{
14-
$oParser = new CSSParser($sCss);
15-
$oDoc = $oParser->parse();
14+
$oParser = new CSSParser();
15+
$oDoc = $oParser->parseString($sCss);
1616
$this->assertEquals((string)$oDoc, $sExpected);
1717
}
1818
public function testMSFiltersProvider()

tests/bugs/GH27_Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class GH27_Test extends PHPUnit_Framework_TestCase
1111
**/
1212
public function testNamespaces($sCss, $sExpected)
1313
{
14-
$oParser = new CSSParser($sCss);
15-
$oDoc = $oParser->parse();
14+
$oParser = new CSSParser();
15+
$oDoc = $oParser->parseString($sCss);
1616
$this->assertEquals((string)$oDoc, $sExpected);
1717
}
1818
public function testNamespacesProvider()

testsuite.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
<phpunit>
22
<testsuites>
33
<testsuite name="PHP-CSS-Parser Tests">
4+
<file>tests/CSSColorUtilsTest.php</file>
5+
<file>tests/CSSColorTest.php</file>
6+
<file>tests/CSSImportTest.php</file>
7+
<file>tests/CSSDocumentTest.php</file>
48
<file>tests/CSSDeclarationBlockTest.php</file>
5-
<file>tests/CSSParserTests.php</file>
9+
<file>tests/CSSParserTest.php</file>
610
</testsuite>
711
<testsuite name="PHP-CSS-Parser Bugs">
812
<directory>tests/bugs</directory>

0 commit comments

Comments
 (0)