PHP code example of apility / test-utilities
1. Go to this page and download the library: Download apility/test-utilities 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/ */
apility / test-utilities example snippets
use Apility\Testing\Laravel;
$app = Laravel::createApplication()
->withRoot(__DIR__)
->withConfig([
'cache' => [
'default' => 'file',
'stores' => [
'file' => [
'driver' => 'file',
'path' => __DIR__ . '/cache',
],
],
],
])
->withFrameworkProvider(Illuminate\Cache\CacheServiceProvider::class)
->withProvider(MyPlugin\Providers\MyPluginServiceProvider::class)
->boot();