We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 457b016 + 2cc5ef2 commit 2490d4cCopy full SHA for 2490d4c
Tests/Functional/ProfilerTest.php
@@ -13,10 +13,8 @@ public function testShowProfiler()
13
//Browse any page to get a profile
14
$client->request('GET', '/');
15
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());
+ $client->request('GET', '/_profiler/latest?panel=httplug');
+ $content = $client->getResponse()->getContent();
+ $this->assertTrue(false !== strpos($content, '<h2>HTTPlug</h2>'));
21
}
22
0 commit comments