예제 #1
0
 public function testCurrentUrl()
 {
     $this->module->amOnPage('/info');
     $this->module->seeCurrentUrlEquals('/info');
     $this->module->dontSeeInCurrentUrl('/user');
     $this->module->dontSeeCurrentUrlMatches('~user~');
     $this->module->amOnPage('/form/checkbox');
     $this->module->seeCurrentUrlEquals('/form/checkbox');
     $this->module->seeInCurrentUrl('form');
     $this->module->seeCurrentUrlMatches('~form/.*~');
     $this->module->dontSeeCurrentUrlEquals('/');
     $this->module->dontSeeCurrentUrlMatches('~form/a~');
     $this->module->dontSeeInCurrentUrl('user');
 }