/** * @depends testBuildSqlNoAttrsLowerCaseUpperCase * @return null */ public function testBuildSqlUnsignedZeroFillAutoIncrementDisplayWidth() { $this->assertFalse($this->type->isUpperCase()); $this->type->enableUnsigned()->enableZeroFill()->enableAutoIncrement()->setDisplayWidth(4); $expected = "{$this->type->getSqlString()}(4) unsigned zerofill "; $expected .= "auto_increment"; $this->assertEquals($expected, $this->type->buildSql()); $this->type->enableUpperCase(); $this->assertEquals(strtoupper($expected), $this->type->buildSql()); }
/** * @depends testIsEnableDisableUpperCase */ public function testBuildSql() { $this->assertEquals(strtolower($this->sqlString), $this->type->buildSql(), 'unless isUppercase is false so should be lowercase'); $this->type->enableUppercase(); $this->assertEquals(strtoupper($this->sqlString), $this->type->buildSql(), 'should be all uppercase'); }
/** * @return null */ public function xtestBuildSqlNoAttributes() { $expected = 'float'; $this->assertEquals($expected, $this->type->buildSql()); }