$test = true; $response = false; try { $response = $server->execute($search_request); } catch (KoSolr_Exception $ex) { $test = false; } addTest('Search',($test&&$response),true,true); echo '<li class="test"><div class="code">Response : <br/><pre>'; echo print_r($response,true); echo '</pre></div></li>'; addTest('Check response equals ',$response->response['docs'][0]['name'],'xxx TEST'); ?> </ol> <? if($continue_ckeck) { echo base64_decode("PGRpdiBjbGFzcz0iV09SS1MiPkdyYXRlICEgPHNwYW4gY2xhc3M9IktvU29sciI+S288c3BhbiBjbGFzcz0icm90a2luIj5yb3RraW48L3NwYW4+U29scjwvc3Bhbj4gaXMgV29ya3MgITwvZGl2Pg=="); } ?> </body> </html>
function run_tests() { $tests = array(); addTest($tests, "PHP Version", "fs_systest_php_version"); addTest($tests, "Files integrity test", "fs_systest_files_integrity"); addTest($tests, "Database status", "fs_systest_database_test"); addTest($tests, "Session", "fs_systest_session"); foreach ($tests as $test) { $f = $test->func; fs_systest_done($test->name, $f()); } }