markTestSkipped('Monolog is not installed'); } $client = static::createPantherClient(); $client->request('GET', '/demo/bridge/monolog'); // Wait for Debugbar to load $crawler = $client->waitFor('.phpdebugbar-body'); usleep(1000); if (!$this->isTabActive($crawler, 'monolog')) { $client->click($this->getTabLink($crawler, 'monolog')); } $crawler = $client->waitForVisibility('.phpdebugbar-panel[data-collector=monolog]'); $messages = $crawler->filter('.phpdebugbar-panel[data-collector=monolog] .phpdebugbar-widgets-value') ->each(function($node){ return $node->getText(); }); $this->assertStringContainsString('demo.INFO: hello world [] []', $messages[0]); } }