In Codeception functional tests we use Symfony Container to access Profiler and Doctrine to check for different data. But looks like in Symfony2 container is rebuilt on every request. So no Doctrine and no Profiler now :( Is that intentional?
Here is the stack trace I see trying to execute Symfony2 functional tests over Codeception
We start with creating Kernel and Client (in Codeception\Module\Symfony2):
<?php
$this->kernelClass = $this->getKernelClass();
$this->kernel = new $this->kernelClass('test', true);