定制 wdda/laravel-finder-tests 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wdda/laravel-finder-tests

最新稳定版本:v1.0.1

Composer 安装命令:

composer require wdda/laravel-finder-tests

包简介

This package uses reflection to find tests

README 文档

README

Software License Build Status

Laravel Finder Unit Tests.

Notice

The name of the class tests must match exactly with the name of the class

//Class
ClassName.php

//Test class
ClassNameTest.php

the name of the test methods and the name of the class methods must match

//In class
public function methodName() 
{
    ...
}
//In test class
public function testMethodName() 
{
    ...
}

Install

Install package:

$ composer require wdda/laravel-finder-tests --dev

Open your config/app.php and add the following to the providers array:

WDDA\LaravelFinderTests\FinderTestsProvider::class,

Run the command below to publish the package config file config/finder-tests.php:

php artisan vendor:publish --tag=finder-tests

Usage

php artisan finder-tests

or for option only not found

php artisan finder-tests --limit=1

axample all settings for config finder-tests.php

return  [
    'directory' => [
        [
            'rootPath' => app_path(),
            'classes' => [ //required
                'dir' => 'Modules/Models', //required
                'methodsExclude' => [
                    '__construct'
                ],
                'classesExclude' => [
                    'App\Modules\Models\Wiki'
                ]
            ],
            'tests' => [ //required
                'dir' => 'Modules/Tests/Unit', //required
                'methodsExclude' => [
                    'test'
                ],
                'classesExclude' => [
                    'App\Modules\Tests\Wiki'
                ]
            ]
        ],
        [
            //Other directory...
        ]
    ]
];

Testing

$ phpunit

Security

If you discover any security related issues, please email dima@wdda.pro instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 1.38k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-01-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固