Пример #1
0
 /**
  * @depends	testIsEnableDisableUpperCase
  */
 public function testBuildSql()
 {
     $this->assertEquals(strtolower($this->sqlPhrase), $this->constraint->buildSql(), 'unless isUppercase is false so should be lowercase');
     $this->constraint->enableUppercase();
     $this->assertEquals(strtoupper($this->sqlPhrase), $this->constraint->buildSql(), 'should be all uppercase');
 }
Пример #2
0
 /**
  * @return	null
  */
 public function testBuildSqlUppercase()
 {
     $this->constraint->enableUpperCase();
     $this->assertEquals('NOT NULL', $this->constraint->buildSql());
 }