abstract class KernelTestCase extends TestCase
KernelTestCase is the base class for tests needing a Kernel.
| static protected | $class | ||
| static protected KernelInterface | $kernel | ||
| static protected ContainerInterface | $container |
| static string | getKernelClass() | |
| static KernelInterface | bootKernel(array $options = array()) Boots the Kernel for this test. | |
| static KernelInterface | createKernel(array $options = array()) Creates a Kernel. | |
| static | ensureKernelShutdown() Shuts the kernel down if it was used in the test. | |
| tearDown() Clean up Kernel usage in this test. |
| string | The Kernel class name |
| RuntimeException | |
| LogicException |
Boots the Kernel for this test.
| array | $options |
| KernelInterface | A KernelInterface instance |
Creates a Kernel.
Available options:
| array | $options |
| KernelInterface | A KernelInterface instance |
Shuts the kernel down if it was used in the test.
Clean up Kernel usage in this test.
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.html