File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed 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
11
11
Additionaly, we recommend to combine this with [ ** Codeception/Verify** ] ( https://github.com/Codeception/Verify ) library, to get BDD style assertions.
12
12
13
13
``` php
14
- <?
14
+ <?php
15
15
class UserTest extends PHPUnit_Framework_TestCase {
16
16
17
17
use Codeception\Specify;
@@ -27,18 +27,18 @@ class UserTest extends PHPUnit_Framework_TestCase {
27
27
28
28
$this->specify("username is required", function() {
29
29
$this->user->username = null;
30
- verify($user->validate(['username'])->false());
30
+ verify($this-> user->validate(['username'])->false());
31
31
});
32
32
33
33
$this->specify("username is too long", function() {
34
34
$this->user->username = 'toolooooongnaaaaaaameeee',
35
- verify($user->validate(['username'])->false());
35
+ verify($this-> user->validate(['username'])->false());
36
36
});
37
37
38
38
// alternative, TDD assertions can be used too.
39
39
$this->specify("username is ok", function() {
40
40
$this->user->username = 'davert',
41
- $this->assertTrue($user->validate(['username']));
41
+ $this->assertTrue($this-> user->validate(['username']));
42
42
});
43
43
}
44
44
}
You can’t perform that action at this time.
0 commit comments