ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilDatabaseReservedWordsTest Class Reference

Class ilDatabaseReservedWordsTest. More...

+ Inheritance diagram for ilDatabaseReservedWordsTest:
+ Collaboration diagram for ilDatabaseReservedWordsTest:

Public Member Functions

 testReservedPDO ($word, $is_reserved)
 reservedData More...
 
 reservedData ()
 

Protected Member Functions

 setUp ()
 

Detailed Description

Member Function Documentation

◆ reservedData()

ilDatabaseReservedWordsTest::reservedData ( )
Returns
array

Definition at line 39 of file ilDatabaseReservedWordsTest.php.

40  {
41  return [
42  ['order', true],
43  ['myfield', false],
44  ['number', true],
45  ['null', true],
46  ['sensitive', true],
47  ['usage', true],
48  ['analyze', true],
49  ];
50  }

◆ setUp()

ilDatabaseReservedWordsTest::setUp ( )
protected

Definition at line 10 of file ilDatabaseReservedWordsTest.php.

References $DIC, and $ilDB.

11  {
12  PHPUnit_Framework_Error_Notice::$enabled = false;
13  PHPUnit_Framework_Error_Deprecated::$enabled = false;
14  parent::setUp();
15  require_once('./Services/Database/classes/class.ilDBConstants.php');
16  global $ilDB, $DIC;
17  require_once('./Services/Database/classes/PDO/class.ilDBPdoMySQLInnoDB.php');
18  $ilDB = new ilDBPdoMySQLInnoDB();
19  $DIC['ilDB'] = $ilDB;
20  }
global $DIC
Definition: saml.php:7
global $ilDB
Class ilDBPdoMySQLInnoDB.

◆ testReservedPDO()

ilDatabaseReservedWordsTest::testReservedPDO (   $word,
  $is_reserved 
)

reservedData

Parameters
$word
$is_reserved

Definition at line 29 of file ilDatabaseReservedWordsTest.php.

References ilDBInterface\isReservedWord().

30  {
31  require_once('./Services/Database/classes/PDO/class.ilDBPdoMySQLInnoDB.php');
32  $this->assertEquals($is_reserved, ilDBPdoMySQLInnoDB::isReservedWord($word));
33  }
static isReservedWord($a_word)
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: