Newer
Older
framework / system / Test / Mock / MockSecurity.php
@lonnieezell lonnieezell on 1 May 2020 360 bytes Release v4.0.3
<?php namespace CodeIgniter\Test\Mock;

use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\Security\Security;

class MockSecurity extends Security
{
	public function CSRFSetCookie(RequestInterface $request)
	{
		$_COOKIE['csrf_cookie_name'] = $this->CSRFHash;

		return $this;
	}

	//--------------------------------------------------------------------

}