PHPackages                             zizaco/testcases-laravel - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. zizaco/testcases-laravel

ActiveLibrary[Testing &amp; Quality](/categories/testing)

zizaco/testcases-laravel
========================

Some classes to help write tests for laravel 4 applications

v1.0.0(12y ago)4650.5k10[1 issues](https://github.com/Zizaco/testcases-laravel/issues)2MITPHPPHP &gt;=5.3.0

Since Dec 27Pushed 10y ago8 watchersCompare

[ Source](https://github.com/Zizaco/testcases-laravel)[ Packagist](https://packagist.org/packages/zizaco/testcases-laravel)[ RSS](/packages/zizaco-testcases-laravel/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (3)Used By (2)

TestCases-Laravel (Laravel4 Package)
====================================

[](#testcases-laravel-laravel4-package)

[![ProjectStatus](https://camo.githubusercontent.com/bac400b53c93b223fb6c4da04c28a288b96cf7ae3bebed758e0761252e59bf08/687474703a2f2f7374696c6c6d61696e7461696e65642e636f6d2f5a697a61636f2f7465737463617365732d6c61726176656c2e706e67)](http://stillmaintained.com/Zizaco/testcases-laravel)

A set of classes that aims to facilitate the preparation and writing tests using **PHPUnit** for applications built with **Laravel 4**.

Features
--------

[](#features)

**Current:**

- Pretend mail sending to speed up tests
- Simpler and flexible controller and request testing
- Specific assertions for controller testing
- Front-end testing with Selenium **(with selenium integration)**
- Specific assertions for front-end testing
- **Simple to use!**

If you are looking for BDD or Behat see [behat-laravel](https://github.com/GuilhermeGuitte/behat-laravel)

Quick start
-----------

[](#quick-start)

### Required setup

[](#required-setup)

In the `require` key of `composer.json` file add the following

```
"zizaco/testcases-laravel": "dev-master"

```

Run the Composer update comand

```
$ composer update

```

### Testing models and libraries

[](#testing-models-and-libraries)

To write tests for models and other classes, simply extend the `Zizaco\TestCases\TestCase`. For example:

```
