Download the PHP package davispeixoto/laravel-test-generator without Composer

On this page you can find all versions of the php package davispeixoto/laravel-test-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-test-generator

Laravel 4 Test Generator

Build Status

This Laravel 4 package provides a powerful test generator to speed up your development process.

It's based on the facility PHPUnit Skeleton Generator provides and Jeffrey Way's Laravel 4 generators.

The first doesn't work 100% with all Laravel 4 application classes. Usually you need to add some dependency in the class to make it work, even if your project solves it all with the Composer PSR-0 compliant autoloader.

The second, generates a really tiny test class. It doesn't maps all class public methods and let everything in place.

This generator loads the target with and use the PHP Reflection features for reverse engineer all public methods, and provide an enhanced skeleton, including calls for data providers.

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require davispeixoto/testingtool.

"require": {
    "laravel/framework": "4.*",
    "davispeixoto/laravel-test-generator": "1.0.*"
},
"minimum-stability" : "stable"

Next, update Composer from the Terminal:

composer update

Once this operation completes, the final step is to add the service provider. Open app/config/app.php, and add a new item to the providers array.

'Davispeixoto\TestGenerator\TestGeneratorServiceProvider'

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 tests:generate when you need to create a new PHPUnit test class. Here's an example:

This will generate a resource controller and a test class app/tests/UserControllerTest.php as follows:

For full usage, I recommend first reading the article Testing Like a Boss in Laravel. There are some performance tuning to be made in the Laravel 4 core TestCase class.

Along with them, to add the data providers functionality. Add to your Laravel composer.json:

"require": {
    "laravel/framework": "4.1.*",
    "davispeixoto/testingtool": "dev-master",
    "keboola/csv" : "dev-master"
},
"minimum-stability" : "dev"

Next, update Composer from the Terminal:

composer update

And finally, let the TestCase class like this:

With these little changes, you can really speed up your testing process for your Laravel application.

License

This Test Generator is open-sourced software licensed under the MIT license

Versioning

This project follows the Semantic Versioning


All versions of laravel-test-generator with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version 4.*
illuminate/console Version 4.*
illuminate/filesystem Version 4.*
symfony/yaml Version 2.5.*@dev
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package davispeixoto/laravel-test-generator contains the following files

Loading the files please wait ....