use Symfony\Bundle\FrameworkBundle\Test\TestContainer;
use Symfony\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\TestServiceContainer\NonPublicService;
use Symfony\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\TestServiceContainer\PrivateService;
use Symfony\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\TestServiceContainer\PublicService;
use Symfony\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\TestServiceContainer\UnusedPrivateService;
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
class TestServiceContainerTest extends AbstractWebTestCase
{ public function testLogicExceptionIfTestConfigIsDisabled() { static::
bootKernel(['test_case' => 'TestServiceContainer', 'root_config' => 'test_disabled.yml', 'environment' => 'test_disabled'
]);
$this->
expectException(\LogicException::
class);
static::
getContainer();
} public function testThatPrivateServicesAreAvailableIfTestConfigIsEnabled() { static::
bootKernel(['test_case' => 'TestServiceContainer'
]);
$this->
assertInstanceOf(TestContainer::
class,
static::
getContainer());