-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.php
68 lines (49 loc) · 1.39 KB
/
test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
/**
* Author : SuperBlee
* 2014-12-11
* These code are used for test
*/
$test_conf_id = 407;
$test_conf_info = "Pattern" ;
$test_conf_domain = "Apple" ;
$test_conf_stn = "CVPR" ;
require_once('ClassMySQL.php');
require_once('ClassConference.php') ;
/*对两个类的测试*/
$testdb = new ConnectMySQL();
/*MySQL类测试;
方法 : 初始化
搜索id(详细)
搜索名称(模糊)
搜索领域
*/
$testdb->createTable();
$testdb->initialTable();//初始化 CHECKED!
/*
$test_conf_info_res = $testdb->searchConferenceName($test_conf_info);//查找名称
print_r($test_conf_info_res);
echo "<br/>";
*/
/*
$test_conf_stn_res = $testdb->searchConferenceID($test_conf_stn); //shortname->id
print_r($test_conf_stn_res) ;
echo "<br/>";
*/
/*
$test_conf_domain_res = $testdb->searchDomainConference($test_conf_domain);//查找领域
print_r($test_conf_domain_res) ;
echo "<br/>";
/*Conference类测试 ;
方法 : findConferenceID($name) 给简称,查id check!
fineConferenceInfo($cfid) 给id,爬虫 check!
showConferenceInfo($result) 给result,显示出来,html
showDomainConference($domain) 给Domain,显示出来,html
*/
/*
$testconf = new Conference();
$id = $testconf->findConferenceID($test_conf_stn);
$testconf->showConferenceInfo(($testconf->findConferenceInfo($id)));
$testconf->showDomainConference($test_conf_domain);
*/
?>