Esempio n. 1
0
 /**
  * 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());
 }
Esempio n. 2
0
 /**
  * @return null
  */
 public function testIsEnableDisableAutoIncrement()
 {
     $this->assertFalse($this->type->isAutoIncrement());
     $this->assertSame($this->type, $this->type->enableAutoIncrement(), 'uses a fluent interface');
     $this->assertTrue($this->type->isAutoIncrement());
     $this->assertSame($this->type, $this->type->disableAutoIncrement(), 'uses a fluent interface');
     $this->assertFalse($this->type->isAutoIncrement());
 }