Example #1
0
 public function testIntents()
 {
     $code = Phorms\Csrf::generate('/okay', 60);
     $this->assertFalse(Phorms\Csrf::check($code, '/fail'));
     $this->assertTrue(Phorms\Csrf::check($code, '/okay'));
 }