Skip to content

Commit

Permalink
Merge pull request #2 from ninobaldo/master
Browse files Browse the repository at this point in the history
fix bug: Command class "Davispeixoto\TestGenerator\Commands\TestsGenerat...
  • Loading branch information
davispeixoto committed Apr 24, 2014
2 parents ffdc89e + 44573f4 commit 3015ecc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,20 @@ Once this operation completes, the final step is to add the service provider. Op

'Davispeixoto\Testingtool\TestingtoolServiceProvider'

That's it! You're all set to go. Run the `artisan` command from the Terminal to see the new `generate:tests` commands.
That's it! You're all set to go. Run the `artisan` command from the Terminal to see the new `tests:generate` commands.

php artisan

Usage
-----

Use `generate:tests` when you need to create a new PHPUnit test class.
Use `tests:generate` when you need to create a new PHPUnit test class.
Here's an example:

```bash

php artisan controller:make UserController
php artisan generate:tests UserController
php artisan tests:generate UserController
```

This will generate a resource controller and a test class `app/tests/UserControllerTest.php` as follows:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class TestsGeneratorCommand extends Command {

public function __construct()
{
parent::__construct();
$this->generator = new Generator();
}

Expand Down

0 comments on commit 3015ecc

Please sign in to comment.