public function testSetEngine() { $engine = new stdClass(); CsrfProtection::setEngine($engine); $this->assertSame($engine, CsrfProtection::getEngine()); $this->assertSame($engine, Registry::get('hyperframework.web.csrf_protection_engine')); }