- version 3.6
Check those constraints:
$this->anything()
| { | |
| "compilerOptions": { | |
| "target": "es5", | |
| "lib": [ | |
| "dom", | |
| "dom.iterable", | |
| "esnext" | |
| ], | |
| "esModuleInterop": true, | |
| "module": "esnext", |
| <?php | |
| /** | |
| * Run: http://localhost/api.php/{$table}/{$id} | |
| **/ | |
| // get the HTTP method, path and body of the request | |
| $method = $_SERVER['REQUEST_METHOD']; | |
| $request = explode('/', trim($_SERVER['PATH_INFO'], '/')); | |
| $input = json_decode(file_get_contents('php://input'), true); |
| <!DOCTYPE hibernate-configuration PUBLIC | |
| "-//Hibernate/Hibernate Configuration DTD 3.0//EN" | |
| "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> | |
| <hibernate-configuration> | |
| <session-factory> | |
| <!-- JDBC Database connection settings --> | |
| <property name="connection.driver_class">com.mysql.cj.jdbc.Driver</property> |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| /** | |
| * Register any application services. |
| <!-- | |
| Create a file for sqlite database. | |
| Point the database.php file to it | |
| 'connections' => [ | |
| 'sqlite' => [ | |
| 'driver' => 'sqlite', | |
| 'database' => env('DB_DATABASE', database_path('testing.sqlite')), | |
| ... | |
| ], |
| <?php | |
| namespace Tests; | |
| use Exception; | |
| use Illuminate\Foundation\Testing\TestCase as BaseTestCase; | |
| use App\Exceptions\Handler; | |
| use Illuminate\Contracts\Debug\ExceptionHandler; | |
| abstract class TestCase extends BaseTestCase |
| <?php | |
| /* App\Providers\AppServiceProvider.php */ | |
| use Illuminate\Support\Facades\Schema; | |
| /** | |
| * Bootstrap any application services. | |
| * | |
| * @return void |