public function testCheckCsrfWhenProtectionIsDisabled()
 {
     $engine = $this->getMock('Hyperframework\\Web\\CsrfProtectionEngine');
     $engine->expects($this->never())->method('run');
     CsrfProtection::setEngine($engine);
     $this->testRun();
 }
 private function mockEngineMethod($method)
 {
     $engine = $this->getMock('Hyperframework\\Web\\CsrfProtectionEngine');
     CsrfProtection::setEngine($engine);
     return $engine->expects($this->once())->method($method);
 }