Skip to content

Commit 28b128d

Browse files
authored
Merge pull request #639 from NielsdeBlaauw/patch-1
Update 2013-10-04-specification-phpunit.markdown
2 parents 8eba27e + fed9524 commit 28b128d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/2013-10-04-specification-phpunit.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Now we've got a list of specification and code examples for each case. If one da
9797

9898
Please note, that all the specification are grouped by context. In plain PHPUnit you would create each code block as a separate method. This way it's pretty hard to all the tests related to one specific feature, in our case - publishing.
9999

100-
Ok, we got nice specifications. But can we also replace classical asserts with some more BDD stuff? Sure. We have another tiny package [Verify](https://github.com/Codeception/Verify) which is also inspired by Jasmine. `Assert` keyword is replaced either with `expect` (as Jasmine does) or `verify`. This asserts change the order of assetion to improve readability.
100+
Ok, we got nice specifications. But can we also replace classical asserts with some more BDD stuff? Sure. We have another tiny package [Verify](https://github.com/Codeception/Verify) which is also inspired by Jasmine. `Assert` keyword is replaced either with `expect` (as Jasmine does) or `verify`. This asserts change the order of assertion to improve readability.
101101

102102
Let's rewrite our test with **Verify** so you could feel the difference.
103103

@@ -162,4 +162,4 @@ php composer.phar require "codeception/verify:*" --dev
162162
To introduce `specify` codeblocks, just add `use Codeception\Specify` into any TestCase file.
163163
BDD styled assertions with `expect` keywords are installed automatically.
164164

165-
**Hint:** Isolated codeblocks are especially useful [for testing exceptions](https://github.com/Codeception/Specify#exceptions).
165+
**Hint:** Isolated codeblocks are especially useful [for testing exceptions](https://github.com/Codeception/Specify#exceptions).

0 commit comments

Comments
 (0)