Skip to content

Commit 2d90234

Browse files
Merge branch '2.7' into 2.8
* 2.7: Update JsonBundleReader.php [HttpKernel] Clean test directory on tear down Fix testHtml method with regexp
2 parents edfa9c8 + 217ad29 commit 2d90234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/CrawlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ public function testText()
373373
public function testHtml()
374374
{
375375
$this->assertEquals('<img alt="Bar">', $this->createTestCrawler()->filterXPath('//a[5]')->html());
376-
$this->assertEquals('<input type="text" value="TextValue" name="TextName"><input type="submit" value="FooValue" name="FooName" id="FooId"><input type="button" value="BarValue" name="BarName" id="BarId"><button value="ButtonValue" name="ButtonName" id="ButtonId"></button>', trim($this->createTestCrawler()->filterXPath('//form[@id="FooFormId"]')->html()));
376+
$this->assertEquals('<input type="text" value="TextValue" name="TextName"><input type="submit" value="FooValue" name="FooName" id="FooId"><input type="button" value="BarValue" name="BarName" id="BarId"><button value="ButtonValue" name="ButtonName" id="ButtonId"></button>', trim(preg_replace('~>\s+<~', '><', $this->createTestCrawler()->filterXPath('//form[@id="FooFormId"]')->html())));
377377

378378
try {
379379
$this->createTestCrawler()->filterXPath('//ol')->html();

0 commit comments

Comments
 (0)