Skip to content

Commit

Permalink
Merge branch '2.0'
Browse files Browse the repository at this point in the history
Conflicts:
	src/fixture/app/config/session.php
  • Loading branch information
crynobone committed Nov 1, 2013
2 parents 9c2d297 + 6daf55a commit 7ec4ac1
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Laravel Package Unit Testing Helper
==============

`Orchestra\Testbench` is a simple package that is suppose to help you write test cases for your Laravel package especially when there is routing involved.
`Orchestra\Testbench` is a simple package that is supposed to help you write tests for your Laravel package, especially when there is routing involved.

[![Latest Stable Version](https://poser.pugx.org/orchestra/testbench/v/stable.png)](https://packagist.org/packages/orchestra/testbench)
[![Total Downloads](https://poser.pugx.org/orchestra/testbench/downloads.png)](https://packagist.org/packages/orchestra/testbench)
Expand Down Expand Up @@ -29,7 +29,7 @@ To install through composer, simply put the following in your `composer.json` fi

## Usage

To use Orchestra\Testbench all you need to do is extend `Orchestra\Testbench\TestCase` instead of `PHPUnit_Framework_TestCase`. The fixture `app` booted by `Orchestra\Testbench\TestCase` is predefined to follow the base Laravel 4 application skeleton.
To use Orchestra\Testbench, all you need to do is extend `Orchestra\Testbench\TestCase` instead of `PHPUnit_Framework_TestCase`. The fixture `app` booted by `Orchestra\Testbench\TestCase` is predefined to follow the base application skeleton of Laravel 4.

```php
<?php
Expand All @@ -40,7 +40,7 @@ class TestCase extends Orchestra\Testbench\TestCase {}

### Custom Service Provider

To load your package service provider override the `getPackageProviders`.
To load your package service provider, override the `getPackageProviders`.

```php

Expand All @@ -52,7 +52,7 @@ To load your package service provider override the `getPackageProviders`.

### Custom Aliases

To load your package alias override the `getPackageAliases`.
To load your package alias, override the `getPackageAliases`.

```php

Expand All @@ -66,7 +66,7 @@ To load your package alias override the `getPackageAliases`.

## Testing Route Filters

By default Route filters are disabled by Laravel because ideally you should test the filter separately. In order to overwrite this default add the following code:
By default, route filters are disabled by Laravel because, ideally, you should test the filter separately. In order to overwrite this default, add the following code:

```php

Expand All @@ -77,4 +77,4 @@ $this->app['router']->enableFilters();

Fatal error: Class 'Illuminate\Foundation\Testing\TestCase' not found in /laravel/workbench/foo/bar/vendor/orchestra/testbench/src/Orchestra/Testbench/TestCase.php

Due to the requirement to include `laravel/framework` when you install `orchestra/testbench`, please remove any **illuminate** dependencies to avoid fail installation.
Due to the requirement to include `laravel/framework` when you install `orchestra/testbench`, please remove any **Illuminate** dependencies to avoid a failed installation.
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
</target>

<target name="build" depends="update,generate"/>
<target name="generate" depends="clean,lint,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpunit,phpcb,phpdoc"/>
<target name="generate" depends="clean,lint,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpunit,phpcb"/>
<target name="update" depends="composer-update,composer-dumpautoload"/>
<target name="quick-build" depends="composer-dumpautoload,generate"/>
</project>
7 changes: 6 additions & 1 deletion docs/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ Testbench Change Log

## Version 2.0

### v2.0.6

* Implement [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) coding standard.
* Add multiple test case examples.

### v2.0.5

* Fixed stricter SQLite configuration introduced in Laravel Framework 4.0.8.
* Fixed stricter SQLite configuration introduced in Laravel Framework 4.0.8.

### v2.0.4

Expand Down
12 changes: 6 additions & 6 deletions docs/readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Orchestra Testbench Package
==============

`Orchestra\Testbench` is a simple package that is suppose to help you write test cases for your Laravel package especially when there is routing involved.
`Orchestra\Testbench` is a simple package that is supposed to help you write tests for your Laravel package, especially when there is routing involved.

## Installation

Expand All @@ -24,7 +24,7 @@ To install through composer, simply put the following in your `composer.json` fi

## Usage

To use `Orchestra\Testbench` all you need to do is extend `Orchestra\Testbench\TestCase` instead of `PHPUnit_Framework_TestCase`. The fixture `app` booted by `Orchestra\Testbench\TestCase` is predefined to follow the base Laravel 4 application skeleton.
To use Orchestra\Testbench, all you need to do is extend `Orchestra\Testbench\TestCase` instead of `PHPUnit_Framework_TestCase`. The fixture `app` booted by `Orchestra\Testbench\TestCase` is predefined to follow the base application skeleton of Laravel 4.

```php
<?php
Expand All @@ -35,7 +35,7 @@ class TestCase extends Orchestra\Testbench\TestCase {}

### Custom Service Provider

To load your package service provider override the `getPackageProviders`.
To load your package service provider, override the `getPackageProviders`.

```php

Expand All @@ -47,7 +47,7 @@ To load your package service provider override the `getPackageProviders`.

### Custom Aliases

To load your package alias override the `getPackageAliases`.
To load your package alias, override the `getPackageAliases`.

```php

Expand All @@ -61,7 +61,7 @@ To load your package alias override the `getPackageAliases`.

## Testing Route Filters

By default Route filters are disabled by Laravel because ideally you should test the filter separately. In order to overwrite this default add the following code:
By default, route filters are disabled by Laravel because, ideally, you should test the filter separately. In order to overwrite this default, add the following code:

```php

Expand All @@ -72,4 +72,4 @@ $this->app['router']->enableFilters();

> Fatal error: Class 'Illuminate\Foundation\Testing\TestCase' not found in /laravel/workbench/foo/bar/vendor/orchestra/testbench/src/Orchestra/Testbench/TestCase.php
Due to the requirement to include `laravel/framework` when you install `orchestra/testbench`, please remove any **illuminate** dependencies to avoid fail installation.
Due to the requirement to include `laravel/framework` when you install `orchestra/testbench`, please remove any **Illuminate** dependencies to avoid a failed installation.

0 comments on commit 7ec4ac1

Please sign in to comment.