Skip to content

Commit 93866c2

Browse files
Merge branch '3.3' into 3.4
* 3.3: Update JsonBundleReader.php [HttpKernel] Clean test directory on tear down [Console] Remove useless http-kernel dev dep Fix testHtml method with regexp Fixed some param/return annotations in PHPDOC blocks. [Workflow] fixed InvalidDefinitionException message for StateMachineValidator
2 parents c89fa99 + d15dfaf commit 93866c2

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
@@ -397,7 +397,7 @@ public function testText()
397397
public function testHtml()
398398
{
399399
$this->assertEquals('<img alt="Bar">', $this->createTestCrawler()->filterXPath('//a[5]')->html());
400-
$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()));
400+
$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())));
401401

402402
try {
403403
$this->createTestCrawler()->filterXPath('//ol')->html();

0 commit comments

Comments
 (0)