symfony - codeception symfony2 unit test throws a fatal error -
using classical phpunit style generate:test symfony2 helper. can service , can assert ok. // tests public function testgetserviceurl() { $ecservice = $this->getmodule('symfony2')->grabservicefromcontainer("ecservice"); $this->assertequals("https://ecoconnect2.niwa.co.nz/services", $ecservice->getserviceurl()); $this->assertequals("xxx", $ecservice->getserviceurl()); } however in second case assertion fails exception: trying test service url (demotest::testgetserviceurl) - failed php fatal error: call member function getresponse() on non-object in /users/watkinsav/workspace/cd/ecoconnect_web/vendor/codeception/codeception/src/codeception/util/framework.php on line 30 php stack trace: php 1. {main}() /users/watkinsav/workspace/cd/ecoconnect_web/vendor/codeception/codeception/codecept:0 php 2. symfony\component\console\application->run() /users/watkinsav/workspace/cd/ecoco...