0 follower

Abstract Class Yiisoft\Yii\Testing\FunctionalTestCase

InheritanceYiisoft\Yii\Testing\FunctionalTestCase » PHPUnit\Framework\TestCase

Public Methods

Hide inherited methods

Method Description Defined By
mockService() Yiisoft\Yii\Testing\FunctionalTestCase

Property Details

Hide inherited properties

$tester protected property

Method Details

Hide inherited methods

bootstrapApplication() protected method

protected void bootstrapApplication ( string|null $projectRootPath null )
$projectRootPath string|null

                protected function bootstrapApplication(?string $projectRootPath = null): void
{
    $this->tester?->bootstrapApplication($projectRootPath);
}

            
doRequest() protected method

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');
}

            
getContainer() protected method

protected \Psr\Container\ContainerInterface getContainer ( )

                protected function getContainer(): ContainerInterface
{
    return $this->tester?->getContainer() ?? throw new Exception('Either $tester or $container is null');
}

            
mockService() public method

public void mockService ( string $id, mixed $definition )
$id string
$definition mixed

                public function mockService(string $id, mixed $definition): void
{
    $this->tester?->mockService($id, $definition);
}

            
setUp() protected method

protected void setUp ( )

                protected function setUp(): void
{
    $this->tester = new FunctionalTester();
}