1. Go to this page and download the library: Download contao/test-case library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?phprequire_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
$fs = new Filesystem();
$fs->mkdir($this->getTempDir().'/var/cache');
useContao\TestCase\ContaoTestCase;
classMyTestextendsContaoTestCase{
publicstaticfunctiontearDownAfterClass(){
// The temporary directory would not be removed without this call!parent::tearDownAfterClass();
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.