Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
PU_test_dcp_volatileParam.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 /**
7  * @author Anakeen
8  * @package Dcp\Pu
9  */
10 
11 namespace Dcp\Pu;
12 
13 require_once 'PU_testcase_dcp.php';
14 require_once 'Lib.Main.php';
15 
17 {
18  /**
19  * @dataProvider dataParamKeys
20  */
21  public function testVolatileExists($key, $value)
22  {
23  static $first = true;
24  $a = self::getAction();
25 
26  initExplorerParam($a->parent);
27 
28  $v = $a->getParam($key, null);
29  $this->assertTrue($v === $value, sprintf("expect %s value for %s key", $value, $key));
30  }
31 
32  public function dataParamKeys()
33  {
34  return array(
35  array(
36  'ISIE',
37  false
38  ) ,
39  array(
40  'ISIE6',
41  false
42  ) ,
43  array(
44  'ISIE7',
45  false
46  ) ,
47  array(
48  'ISIE8',
49  false
50  ) ,
51  array(
52  'ISIE9',
53  false
54  ) ,
55  array(
56  'ISIE10',
57  false
58  ) ,
59  array(
60  'ISAPPLEWEBKIT',
61  false
62  ) ,
63  array(
64  'ISSAFARI',
65  false
66  ) ,
67  array(
68  'ISCHROME',
69  false
70  ) ,
71  array(
72  'HOULALA',
73  null
74  )
75  );
76  }
77 }
78 ?>
print< H1 > Check Database< i > $dbaccess</i ></H1 > $a
Definition: checklist.php:45
initExplorerParam(Application &$app, $defaultValue=false)
Definition: Lib.Main.php:142
$value
← centre documentaire © anakeen