abstract class WebTestCase extends KernelTestCase
WebTestCase is the base class for functional tests.
static protected | $class | from KernelTestCase | |
static protected KernelInterface | $kernel | from KernelTestCase | |
static protected ContainerInterface | $container | from KernelTestCase |
static string | getKernelClass() | from KernelTestCase |
static KernelInterface | bootKernel(array $options = array()) Boots the Kernel for this test. | from KernelTestCase |
static KernelInterface | createKernel(array $options = array()) Creates a Kernel. | from KernelTestCase |
static | ensureKernelShutdown() Shuts the kernel down if it was used in the test. | from KernelTestCase |
tearDown() Clean up Kernel usage in this test. | from KernelTestCase | |
static Client | createClient(array $options = array(), array $server = array()) Creates a Client. |
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.
Creates a Client.
array | $options | An array of options to pass to the createKernel method |
array | $server | An array of server parameters |
Client | A Client instance |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.html