Definition at line 3 of file ContextTest.php.
Definition at line 5 of file ContextTest.php.
7 list($server, $mysqlConfig) = require(
"test/config.php");
8 $dbh =
new PDO($mysqlConfig[4][0], $mysqlConfig[1], $mysqlConfig[2]);
9 $dbh->exec(
"DROP DATABASE ".$mysqlConfig[4][1]);
10 $dbh->exec(
"CREATE DATABASE ".$mysqlConfig[4][1]);
13 $context = new \Tools\Context($server,
false);
16 $this->assertEquals(
"127.0.0.10",
$context->ip);
20 $this->fail(
"Expected exception");
static init($config=null)
The documentation for this class was generated from the following file: