PHP code example of zoomyboy / tests
1. Go to this page and download the library: Download zoomyboy/tests 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/ */
zoomyboy / tests example snippets
use ChecksAuthorization;
...
$this->assertRequestDenies(new Request($get, $post));
$this->assertRequestGrants(new Request($get, $post));
public $fakeUserModel = \App\User::class;
...
$this->mockUser(array $rights);