예제 #1
0
파일: MinkTest.php 프로젝트: dunglas/Mink
 public function testRestartSessions()
 {
     $session1 = $this->getSessionMock();
     $session1->expects($this->once())->method('isStarted')->will($this->returnValue(false));
     $session1->expects($this->never())->method('restart');
     $session2 = $this->getSessionMock();
     $session2->expects($this->once())->method('isStarted')->will($this->returnValue(true));
     $session2->expects($this->once())->method('restart');
     $this->mink->registerSession('not started', $session1);
     $this->mink->registerSession('started', $session2);
     $this->mink->restartSessions();
 }