class PhpDumperTest extends TestCase
{ public function testDumpContainerWithProxyService() { $this->
assertStringMatchesFormatFile( __DIR__.'/../Fixtures/php/lazy_service_structure.txt',
$this->
dumpLazyServiceProjectServiceContainer(),
'->dump() does generate proxy lazy loading logic.'
);
} /**
* Verifies that the generated container retrieves the same proxy instance on multiple subsequent requests.
*/
public function testDumpContainerWithProxyServiceWillShareProxies() { if (!
class_exists(\LazyServiceProjectServiceContainer::
class, false
)) { eval('?>'.
$this->
dumpLazyServiceProjectServiceContainer());
}