Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Nov 20, 2017
1 parent 26c2697 commit 1b1fe23
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Expand Up @@ -102,22 +102,22 @@ class UserTest extends PHPUnit\Framework\TestCase
{
use Codeception\Specify;

/** @specify */
protected $user; // is cloned inside specify blocks

public function setUp()
{
$this->user = new User;
}
/** @specify */
protected $user; // is cloned inside specify blocks
public function setUp()
{
$this->user = new User;
}

public function testValidation()
{
public function testValidation()
{
$this->user->name = 'davert';
$this->specify("i can change my name", function() {
$this->user->name = 'jon';
$this->assertEquals('jon', $this->user->name);
});
// user name is davert again
// user name is "davert" again
$this->assertEquals('davert', $this->user->name);
}
}
Expand Down

0 comments on commit 1b1fe23

Please sign in to comment.