コード例 #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
ファイル: NotNullTest.php プロジェクト: kevinlondon/appfuel
 /**
  * @return	null
  */
 public function testBuildSqlUppercase()
 {
     $this->constraint->enableUpperCase();
     $this->assertEquals('NOT NULL', $this->constraint->buildSql());
 }