浏览代码
add php testing
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
pull/1/merge
Bo-Yi Wu
7 年前
找不到此签名对应的密钥
GPG 密钥 ID: F84B2110C500B1F
共有
2 个文件被更改,包括
25 次插入 和
1 次删除
-
Makefile
-
tests/Feature/UserTest.php
|
|
@ -1,8 +1,11 @@ |
|
|
|
|
|
|
|
composer: |
|
|
|
composer install --no-progress --profile --prefer-dist |
|
|
|
composer install |
|
|
|
|
|
|
|
yarn: |
|
|
|
yarn install |
|
|
|
|
|
|
|
test: |
|
|
|
./vendor/bin/phpunit |
|
|
|
|
|
|
|
install: composer yarn |
|
|
@ -0,0 +1,21 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
namespace Tests\Feature; |
|
|
|
|
|
|
|
use Tests\TestCase; |
|
|
|
use Illuminate\Foundation\Testing\WithoutMiddleware; |
|
|
|
use Illuminate\Foundation\Testing\DatabaseMigrations; |
|
|
|
use Illuminate\Foundation\Testing\DatabaseTransactions; |
|
|
|
|
|
|
|
class UserTest extends TestCase |
|
|
|
{ |
|
|
|
/** |
|
|
|
* A basic test example. |
|
|
|
* |
|
|
|
* @return void |
|
|
|
*/ |
|
|
|
public function testExample() |
|
|
|
{ |
|
|
|
$this->assertTrue(true); |
|
|
|
} |
|
|
|
} |