Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Represents specification of a {@link User} model.
- *
- * @author Dmitry Kolodko <prowwid@gmail.com>
- */
- class UserSpec extends Specification {
- /**
- * @test
- */
- public function registerSpec() {
- $I = $this->tester;
- $I->describer('registration of a user');
- // code
- $I->seeThatBoolean($result)->isTrue();
- }
- /**
- * @test
- */
- public function disableSpec() {
- $I = $this->tester;
- $I->describer('process of disabling of a user');
- // code
- $I->seeThatString($disableReason)->isEqualTo("You've break the rules");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement