File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Inspired by MiniTest of Ruby now you combine BDD and classical TDD style in one
1111Additionaly, we recommend to combine this with [ ** Codeception/Verify** ] ( https://github.com/Codeception/Verify ) library, to get BDD style assertions.
1212
1313``` php
14- <?
14+ <?php
1515class UserTest extends PHPUnit_Framework_TestCase {
1616
1717 use Codeception\Specify;
@@ -27,18 +27,18 @@ class UserTest extends PHPUnit_Framework_TestCase {
2727
2828 $this->specify("username is required", function() {
2929 $this->user->username = null;
30- verify($user->validate(['username'])->false());
30+ verify($this-> user->validate(['username'])->false());
3131 });
3232
3333 $this->specify("username is too long", function() {
3434 $this->user->username = 'toolooooongnaaaaaaameeee',
35- verify($user->validate(['username'])->false());
35+ verify($this-> user->validate(['username'])->false());
3636 });
3737
3838 // alternative, TDD assertions can be used too.
3939 $this->specify("username is ok", function() {
4040 $this->user->username = 'davert',
41- $this->assertTrue($user->validate(['username']));
41+ $this->assertTrue($this-> user->validate(['username']));
4242 });
4343 }
4444}
You can’t perform that action at this time.
0 commit comments