/** * @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'); }
/** * @return null */ public function testBuildSqlUppercase() { $this->constraint->enableUpperCase(); $this->assertEquals('NOT NULL', $this->constraint->buildSql()); }