Skip to content

Commit f1c2d44

Browse files
authored
Merge pull request #30 from glensc/patch-1
Update README.md
2 parents 368e007 + ff6e147 commit f1c2d44

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Inspired by MiniTest of Ruby now you combine BDD and classical TDD style in one
1111
Additionaly, 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
1515
class 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
}

0 commit comments

Comments
 (0)