/** * These are the values set when no parameters are given into the * contructor * * @depends testInterface * @return null */ public function testDefaultZeroFillDisplayWidthAutoIncrement() { $this->assertNull($this->type->getDisplayWidth()); $this->assertFalse($this->type->isZeroFill()); $this->assertFalse($this->type->isUnsigned()); $this->assertFalse($this->type->isAutoIncrement()); }
/** * @return null */ public function testGetSetDisplayWidth() { /* means it has not been set */ $this->assertNull($this->type->getDisplayWidth()); $width = 5; $this->assertSame($this->type, $this->type->setDisplayWidth($width)); $this->assertEquals($width, $this->type->getDisplayWidth()); $width = 0; $this->assertSame($this->type, $this->type->setDisplayWidth($width)); $this->assertEquals($width, $this->type->getDisplayWidth()); }