Skip to content

Commit 2490d4c

Browse files
authored
Merge pull request #268 from php-http/patch-broken-master
Use strpos instead of Xpath
2 parents 457b016 + 2cc5ef2 commit 2490d4c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Tests/Functional/ProfilerTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ public function testShowProfiler()
1313
//Browse any page to get a profile
1414
$client->request('GET', '/');
1515

16-
$crawler = $client->request('GET', '/_profiler/latest?panel=httplug');
17-
$title = $crawler->filterXPath('//*[@id="collector-content"]/h2');
18-
19-
$this->assertCount(1, $title);
20-
$this->assertEquals('HTTPlug', $title->html());
16+
$client->request('GET', '/_profiler/latest?panel=httplug');
17+
$content = $client->getResponse()->getContent();
18+
$this->assertTrue(false !== strpos($content, '<h2>HTTPlug</h2>'));
2119
}
2220
}

0 commit comments

Comments
 (0)