FriendsLeaveCept.php 289 B

1234567891011121314
  1. <?php
  2. $I = new WebGuy($scenario);
  3. $I->wantTo('test leave bug');
  4. $I->amOnPage('/info');
  5. $jon = $I->haveFriend('jon');
  6. $jon->does(function (WebGuy $I) {
  7. $I->amOnPage('/');
  8. $I->seeInCurrentUrl('/');
  9. });
  10. $I->see('Information', 'h1');
  11. $jon->leave();
  12. $I->see('Don\'t do that at home');