shineyork / junit-laravel
laravel框架单元测试的简化版本
1.1
2021-04-12 12:30 UTC
Requires
- php: ^7.1.3
This package is auto-updated.
Last update: 2024-09-12 20:14:23 UTC
README
方便在laravel框架中对某个类的方法进行调试;类似于单元测试
框架要求
Laravel >= 5.1
安装
composer require "shineyork/junit-laravel"
配置
Laravel 应用
在 config/app.php
中注册 ServiceProvider 和 Facade (Laravel 5.5 无需手动注册)
'providers' => [ // ... ShineYork\JunitLaravel\JunitServiceProvide::class, ]
然后在浏览器中访问的路由如下
Route::get('/junit', 'JunitController@index'); Route::post('/junit', 'JunitController@store')->name('junit.store');