Skip to content

Commit

Permalink
Merge branch 'master' of github.com:laravel/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 27, 2015
2 parents 8e8bcb5 + b157435 commit f9c25ae
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions blade.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ When defining a child page, you may use the Blade `@extends` directive to specif
@@parent

<p>This is appended to the master sidebar.</p>
@stop
@endsection

@section('content')
<p>This is my body content.</p>
@stop
@endsection

In this example, the `sidebar` section is utilizing the `@@parent` directive to append (rather than overwriting) content to the layout's sidebar. The `@@parent` directive will be replaced by the content of the layout when the view is rendered.

Expand Down
2 changes: 1 addition & 1 deletion contributions.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<a name="bug-reports"></a>
## Bug Reports

To encourage active collaboration, Laravel strongly encourages pull requests, not just bug reports. "Bug reports" may also be sent in the form of a pull request containing a failing unit test.
To encourage active collaboration, Laravel strongly encourages pull requests, not just bug reports. "Bug reports" may also be sent in the form of a pull request containing a failing test.

However, if you file a bug report, your issue should contain a title and a clear description of the issue. You should also include as much relevant information as possible and a code sample that demonstrates the issue. The goal of a bug report is to make it easy for yourself - and others - to replicate the bug and develop a fix.

Expand Down
1 change: 0 additions & 1 deletion redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ First, let's setup a listener on a channel via Redis using the `subscribe` metho

use Redis;
use Illuminate\Console\Command;
use Illuminate\Foundation\Inspiring;

class RedisSubscribe extends Command
{
Expand Down
2 changes: 1 addition & 1 deletion session.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The session `driver` defines where session data will be stored for each request.
- `memcached` / `redis` - sessions will be stored in one of these fast, cached based stores.
- `array` - sessions will be stored in a simple PHP array and will not be persisted across requests.

> **Note:** The array driver is typically used for running [unit tests](/docs/{{version}}/testing) to prevent session data from persisting.
> **Note:** The array driver is typically used for running [tests](/docs/{{version}}/testing) to prevent session data from persisting.
### Driver Prerequisites

Expand Down
4 changes: 2 additions & 2 deletions testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
<a name="introduction"></a>
## Introduction

Laravel is built with unit testing in mind. In fact, support for testing with PHPUnit is included out of the box, and a `phpunit.xml` file is already setup for your application. The framework also ships with convenient helper methods allowing you to expressively test your applications.
Laravel is built with testing in mind. In fact, support for testing with PHPUnit is included out of the box, and a `phpunit.xml` file is already setup for your application. The framework also ships with convenient helper methods allowing you to expressively test your applications.

An `ExampleTest.php` file is provided in the `tests` directory. After installing a new Laravel application, simply run `phpunit` on the command line to run your tests.

### Test Environment

When running unit tests, Laravel will automatically set the configuration environment to `testing`. Also, Laravel includes configuration files for `session` and `cache` in the test environment. Both of these drivers are set to `array` while in the test environment, meaning no session or cache data will be persisted while testing. You are free to create other testing environment configurations as necessary.
When running tests, Laravel will automatically set the configuration environment to `testing`. Also, Laravel includes configuration files for `session` and `cache` in the test environment. Both of these drivers are set to `array` while in the test environment, meaning no session or cache data will be persisted while testing. You are free to create other testing environment configurations as necessary.

The `testing` environment variables may be configured in the `phpunit.xml` file.

Expand Down

0 comments on commit f9c25ae

Please sign in to comment.