Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
504
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * Represents specification of a {@link User} model.
  5. *
  6. * @author Dmitry Kolodko <prowwid@gmail.com>
  7. */
  8. class UserSpec extends Specification {
  9. /**
  10. * @test
  11. */
  12. public function registerSpec() {
  13. $I = $this->tester;
  14. $I->describer('registration of a user');
  15. // code
  16. $I->seeThatBoolean($result)->isTrue();
  17. }
  18.  
  19. /**
  20. * @test
  21. */
  22. public function disableSpec() {
  23. $I = $this->tester;
  24. $I->describer('process of disabling of a user');
  25. // code
  26. $I->seeThatString($disableReason)->isEqualTo("You've break the rules");
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement