예제 #1
0
 /**
  * @return	array
  */
 public function provideSql92ReservedWords()
 {
     $reserved = new SqlReservedWords();
     $words = $reserved->getWords();
     $params = array();
     foreach ($words as $word) {
         $params[] = array($word);
     }
     return $params;
 }
예제 #2
0
 /**
  * @return null
  */
 public function testIsReservedFalseCases()
 {
     $this->assertFalse($this->reserved->isReserved(''));
     $this->assertFalse($this->reserved->isReserved(array(1, 3, 4)));
     $this->assertFalse($this->reserved->isReserved(new StdClass()));
     $this->assertFalse($this->reserved->isReserved(12345));
     $this->assertFalse($this->reserved->isReserved('i_am_not_reserved'));
 }