Skip to content

Commit 83f9349

Browse files
committed
Merge pull request #32 from mo25/master
Error from Scrutinizer
2 parents cc4cccc + 092448a commit 83f9349

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Tests/TestBase.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ public function setUp()
5757
* message when running many tests
5858
*/
5959
public function tearDown(){
60-
$this->container->get('doctrine')->getConnection()->close();
60+
if($this->container !== null){
61+
$this->container->get('doctrine')->getConnection()->close();
62+
}
6163

6264
parent::tearDown();
6365
}

0 commit comments

Comments
 (0)