Skip to content

Commit

Permalink
fix: test case & update dep
Browse files Browse the repository at this point in the history
  • Loading branch information
jiannei committed Nov 15, 2024
1 parent d77eb1e commit 74391d6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 33 deletions.
25 changes: 4 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
![Test](https://github.com/Jiannei/laravel-enum/workflows/Test/badge.svg?branch=main)
[![StyleCI](https://github.styleci.io/repos/316907996/shield?branch=main)](https://github.styleci.io/repos/316907996?branch=main)
[![Latest Stable Version](http://poser.pugx.org/jiannei/laravel-enum/v)](https://packagist.org/packages/jiannei/laravel-enum)
[![Total Downloads](http://poser.pugx.org/jiannei/laravel-enum/downloads)](https://packagist.org/packages/jiannei/laravel-enum)
[![Monthly Downloads](http://poser.pugx.org/jiannei/laravel-enum/d/monthly)](https://packagist.org/packages/jiannei/laravel-enum)
[![License](http://poser.pugx.org/jiannei/laravel-enum/license)](https://packagist.org/packages/jiannei/laravel-enum)
[![Latest Stable Version](https://poser.pugx.org/jiannei/laravel-enum/v)](https://packagist.org/packages/jiannei/laravel-enum)
[![Total Downloads](https://poser.pugx.org/jiannei/laravel-enum/downloads)](https://packagist.org/packages/jiannei/laravel-enum)
[![Monthly Downloads](https://poser.pugx.org/jiannei/laravel-enum/d/monthly)](https://packagist.org/packages/jiannei/laravel-enum)
[![License](https://poser.pugx.org/jiannei/laravel-enum/license)](https://packagist.org/packages/jiannei/laravel-enum)

## 介绍

Expand All @@ -32,23 +32,6 @@ php8.1 版本后内置枚举支持,更多信息可以查看:https://www.php.
$ composer require jiannei/laravel-enum -vvv
```


### Laravel

- 发布资源文件

```shell
$ php artisan vendor:publish --provider="Jiannei\Enum\Laravel\Providers\LaravelServiceProvider"
```

### Lumen

- 注册服务容器

```php
$app->register(\Jiannei\Enum\Laravel\Providers\LumenServiceProvider::class);
```

## 使用

更为具体的使用可以查看测试用例:[https://github.com/Jiannei/laravel-enum/tree/main/tests](https://github.com/Jiannei/laravel-enum/tree/main/tests)
Expand Down
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
"email": "[email protected]"
}
],
"require": {
"ext-json": "*",
"jiannei/helpers": "^0.2.1"
},
"require-dev": {
"orchestra/testbench": "^8.0",
"pestphp/pest": "^2.23"
Expand All @@ -26,6 +22,9 @@
"Jiannei\\Enum\\Laravel\\Tests\\": "tests"
}
},
"scripts": {
"test": "vendor/bin/pest"
},
"minimum-stability": "dev",
"prefer-stable" : true,
"config": {
Expand Down
8 changes: 0 additions & 8 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,9 @@
namespace Jiannei\Enum\Laravel\Tests;

use Illuminate\Contracts\Config\Repository;
use Jiannei\Enum\Laravel\Providers\LaravelServiceProvider;

abstract class TestCase extends \Orchestra\Testbench\TestCase
{
protected function getPackageProviders($app)
{
return [
LaravelServiceProvider::class,
];
}

protected function getEnvironmentSetUp($app)
{
$app['path.lang'] = __DIR__.'/lang';
Expand Down

0 comments on commit 74391d6

Please sign in to comment.