/** * This used to determine if the sql string will be returned all uppercase * or all lowercase * * @return null */ public function testIsEnableDisableUpperCase() { $this->assertFalse($this->constraint->isUpperCase()); $this->assertSame($this->constraint, $this->constraint->enableUpperCase(), 'uses a fluent interface'); $this->assertTrue($this->constraint->isUpperCase()); $this->assertSame($this->constraint, $this->constraint->disableUppercase(), 'uses a fluent interface'); $this->assertFalse($this->constraint->isUpperCase()); }
/** * @return null */ public function testBuildSqlUppercase() { $this->constraint->enableUpperCase(); $this->assertEquals('NOT NULL', $this->constraint->buildSql()); }