Abstract Class Yiisoft\Yii\Testing\FunctionalTestCase
| Inheritance | Yiisoft\Yii\Testing\FunctionalTestCase » PHPUnit\Framework\TestCase |
|---|
Protected Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $tester | Yiisoft\Yii\Testing\FunctionalTester|null | Yiisoft\Yii\Testing\FunctionalTestCase |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| mockService() | Yiisoft\Yii\Testing\FunctionalTestCase |
Protected Methods
Property Details
Method Details
| protected void bootstrapApplication ( string|null $projectRootPath = null ) | ||
| $projectRootPath | string|null | |
protected function bootstrapApplication(?string $projectRootPath = null): void
{
$this->tester?->bootstrapApplication($projectRootPath);
}
| protected Yiisoft\Yii\Testing\ResponseAccessor doRequest ( string $method, string $url ) | ||
| $method | string | |
| $url | string | |
protected function doRequest(string $method, string $url): ResponseAccessor
{
return $this->tester?->doRequest($method, $url) ?? throw new Exception('Either $tester or $response is null');
}
| protected \Psr\Container\ContainerInterface getContainer ( ) |
protected function getContainer(): ContainerInterface
{
return $this->tester?->getContainer() ?? throw new Exception('Either $tester or $container is null');
}
| public void mockService ( string $id, mixed $definition ) | ||
| $id | string | |
| $definition | mixed | |
public function mockService(string $id, mixed $definition): void
{
$this->tester?->mockService($id, $definition);
}
Signup or Login in order to comment.