Skip to content

Commit 3519d93

Browse files
committed
Fix incorrect unit tests.
These should have catched the bug fixed in PR MyIntervals#65. Now they do.
1 parent 96d7218 commit 3519d93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Sabberworm/CSS/RuleSet/LenientParsingTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function testFaultToleranceOn() {
2020
$sFile = dirname(__FILE__) . '/../../../files' . DIRECTORY_SEPARATOR . "-fault-tolerance.css";
2121
$oParser = new Parser(file_get_contents($sFile), Settings::create()->withLenientParsing(true));
2222
$oResult = $oParser->parse();
23-
$this->assertSame('.test1 {}'."\n".'.test2 {hello: 2.2;hello: 200000000000.2;}'."\n".'#test {}'."\n".'#test2 {help: none;}'."\n", $oResult->__toString());
23+
$this->assertSame('.test1 {}'."\n".'.test2 {hello: 2.2;hello: 2000000000000.2;}'."\n".'#test {}'."\n".'#test2 {help: none;}'."\n", $oResult->__toString());
2424
}
2525

2626
/**
@@ -37,7 +37,7 @@ public function testLocaleTrap() {
3737
$sFile = dirname(__FILE__) . '/../../../files' . DIRECTORY_SEPARATOR . "-fault-tolerance.css";
3838
$oParser = new Parser(file_get_contents($sFile), Settings::create()->withLenientParsing(true));
3939
$oResult = $oParser->parse();
40-
$this->assertSame('.test1 {}'."\n".'.test2 {hello: 2.2;hello: 200000000000.2;}'."\n".'#test {}'."\n".'#test2 {help: none;}'."\n", $oResult->__toString());
40+
$this->assertSame('.test1 {}'."\n".'.test2 {hello: 2.2;hello: 2000000000000.2;}'."\n".'#test {}'."\n".'#test2 {help: none;}'."\n", $oResult->__toString());
4141
}
4242

4343
public function testCaseInsensitivity() {

0 commit comments

Comments
 (0)