* @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ require_once dirname(__FILE__) . '/../test_framework/phpbb_session_test_case.php'; class phpbb_session_create_test extends phpbb_session_test_case { public function getDataSet() { return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/sessions_full.xml'); } static function bot($bot_agent, $user_id, $bot_ip) { return array(array( 'bot_agent' => $bot_agent, 'user_id' => $user_id, 'bot_ip' => $bot_ip, )); } function test_bot_session() { $output = $this->session_facade->session_create( false, false, false, false, array(), 'user agent', '127.0.0.1', self::bot('user agent', 13, '127.0.0.1'), '' ); $this->assertEquals(true, $output->data['is_bot'], 'should be a bot'); } } k[ݙr=f^:m;5<}z}ʀ +> z@ C tM@/sboG`5}N۽;Omzop>Ew|k*{q|1@-c gpͨy pp }DPT Vڽ;[;:ت}fRk@ u}} )oci{{뾏ջtq6 P54|G||{ϳ_Y֞P(P*itYȽ\M>-۷:z=/}[κz6qSP{X::|%̓ow:vOGC3oRv}XnWSK}ur;d=QLU1]om>>:vhh`;]u }{:0W_^>>F*+=Қ^A۪bOo{Ϸ5W| r >+o u`z hԲܽ.8VvPJJ<[@`3qM+w#mB :yOx6Aݳg|{˼{kfq@<ۻq_}x#|}=O}* Z} t|o#genʥ>7{sWkpE;F QӅ8v(pxؽ/i|Vj/{w5'{>} 9]RW[: ח۰=}Lh ]b D 4 ` F# 3L4@@ A) FOLԞMѦ i A 0 0i# M4M2 2F*~OP)驡z h 4h4 h h h hh z'0 d)~Ti R%04M T&ҧSTҟTQ7