Skip to content

Commit 6abdb4c

Browse files
committed
Merge branch '2.2' into merge-2.2-to-master
2 parents a189abc + b3984e5 commit 6abdb4c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Codeception/Module/Symfony.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ public function seeCurrentRouteIs($routeName, array $params = [])
351351
$intersection = array_intersect_assoc($expected, $match);
352352

353353
$this->assertEquals($expected, $intersection);
354-
355354
}
356355

357356
/**
@@ -449,6 +448,11 @@ public function grabService($service)
449448
*/
450449
protected function getProfile()
451450
{
451+
$container = $this->_getContainer();
452+
if (!$container->has('profiler')) {
453+
return null;
454+
}
455+
452456
$profiler = $this->grabService('profiler');
453457
$response = $this->client->getResponse();
454458
if (null === $response) {

0 commit comments

Comments
 (0)