PHPackages                             ootatter/laravel-make-testcase - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ootatter/laravel-make-testcase

ActiveLibrary

ootatter/laravel-make-testcase
==============================

laravel add make:testcase command

v1.0.1(10y ago)121MITPHPPHP &gt;=5.5.9

Since Aug 31Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ootatter/laravel-make-testcase)[ Packagist](https://packagist.org/packages/ootatter/laravel-make-testcase)[ RSS](/packages/ootatter-laravel-make-testcase/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

laravel-make-testcase
=====================

[](#laravel-make-testcase)

add make:testcase command for laravel

[![Build Status](https://camo.githubusercontent.com/9235f9b179c2471c36b648f704ad726c271a6b77fc04211c3dbcaa413af830b9/68747470733a2f2f7472617669732d63692e6f72672f6f6f7461747465722f6c61726176656c2d6d616b652d74657374636173652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ootatter/laravel-make-testcase)[![Latest Stable Version](https://camo.githubusercontent.com/9d931661a2911f82d51d93581b488fae65d57bf39350e559a940c28869a4cc19/68747470733a2f2f706f7365722e707567782e6f72672f6f6f7461747465722f6c61726176656c2d6d616b652d74657374636173652f76657273696f6e)](https://packagist.org/packages/ootatter/laravel-make-testcase)[![Total Downloads](https://camo.githubusercontent.com/c2acfdbb294b1a816365addec4746202a3de63d203c2b398e7f8bbda75240ee7/68747470733a2f2f706f7365722e707567782e6f72672f6f6f7461747465722f6c61726176656c2d6d616b652d74657374636173652f646f776e6c6f616473)](https://packagist.org/packages/ootatter/laravel-make-testcase)[![Latest Unstable Version](https://camo.githubusercontent.com/fb7aea207c046130a2ff430492fca5b70498a7d408b4cbee19775da4d6c357b5/68747470733a2f2f706f7365722e707567782e6f72672f6f6f7461747465722f6c61726176656c2d6d616b652d74657374636173652f762f756e737461626c65)](//packagist.org/packages/ootatter/laravel-make-testcase)[![License](https://camo.githubusercontent.com/738d136db48dfbe98ab12e39ddc082109fa5ee4efbab320322373e41e70e3a28/68747470733a2f2f706f7365722e707567782e6f72672f6f6f7461747465722f6c61726176656c2d6d616b652d74657374636173652f6c6963656e7365)](https://packagist.org/packages/ootatter/laravel-make-testcase)

### Install

[](#install)

```
composer require ootatter/laravel-make-testcase

```

Add the following in config/app.php:

```
'providers' => [
    LaravelMakeTestCase\GeneratorServiceProvider::class,
];

```

### Usage

[](#usage)

suggest under app directory php files

```
php artisan make:testcase

```

or input class name.

```
php artisan make:testcase Http\\Controllers\\PostController

```

or all file generate.

```
php artisan make:testcase --all

```

### Generate TestCase File

[](#generate-testcase-file)

if generate Http/Controllers/PostController.php output like this.

```
├ tests
  ├ Http
     ├ Controllers
        ├ PostControllerTest.php

```

and PostControllerTest.php like this.

```
