Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/10'
Browse files Browse the repository at this point in the history
Close #10
  • Loading branch information
weierophinney committed Jul 9, 2016
2 parents b9e7146 + 8145b47 commit 67be48a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/book/unit-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ test suite to it. When done, it should read as follows:
</phpunit>
```

Now run `phpunit -- testsuite Album` from the project root; you should get
Now run `phpunit --testsuite Album` from the project root; you should get
similar output to the following:

```text
Expand Down Expand Up @@ -319,10 +319,12 @@ the `fetchAll` method.

First, let's do some setup.

Add an import statement to the top of the test class file for the `AlbumTable`:
Add import statements to the top of the test class file for the `AlbumTable` and
`ServiceManager` classes:

```php
use Album\Model\AlbumTable;
use Zend\ServiceManager\ServiceManager;
```

Now add the following property to the test class:
Expand Down Expand Up @@ -429,7 +431,6 @@ A common scenario with controllers is processing POST data submitted via a form,
as we do in the `AlbumController::addAction()`. Let's write a test for that.

```php
:linenos:}
public function testAddActionRedirectsAfterValidPost()
{
$this->albumTable
Expand Down

0 comments on commit 67be48a

Please sign in to comment.