PHP code example of blast-project / tests-bundle
1. Go to this page and download the library: Download blast-project/tests-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
blast-project / tests-bundle example snippets
use Blast\TestsBundle\Functional\BlastTestCase;
class BlastServiceTest extends BlastTestCase
{
protected function setUp()
{
parent::setUp();
}
public function testServicesAreInitializable()
{
$this->isServicesAreInitializable('blast');
}
}
use Blast\TestsBundle\Functional\BlastTestCase;
class CollectGarbageCommandTest extends BlastTestCase
{
protected function setUp()
{
parent::setUp();
}
public function testCommand()
{
$this->cacheClear();
// or
$this->launchCommand([
'command' => 'cache:clear',
'--no-warmup' => true,
]);
}
}