コード例 #1
0
 public function testGetPhinxType()
 {
     $this->assertEquals('integer', $this->adapter->getPhinxType('int'));
     $this->assertEquals('integer', $this->adapter->getPhinxType('integer'));
     $this->assertEquals('biginteger', $this->adapter->getPhinxType('bigint'));
     $this->assertEquals('decimal', $this->adapter->getPhinxType('decimal'));
     $this->assertEquals('decimal', $this->adapter->getPhinxType('numeric'));
     $this->assertEquals('float', $this->adapter->getPhinxType('real'));
     $this->assertEquals('boolean', $this->adapter->getPhinxType('bit'));
     $this->assertEquals('string', $this->adapter->getPhinxType('varchar'));
     $this->assertEquals('string', $this->adapter->getPhinxType('nvarchar'));
     $this->assertEquals('char', $this->adapter->getPhinxType('char'));
     $this->assertEquals('char', $this->adapter->getPhinxType('nchar'));
     $this->assertEquals('text', $this->adapter->getPhinxType('text'));
     $this->assertEquals('datetime', $this->adapter->getPhinxType('timestamp'));
     $this->assertEquals('date', $this->adapter->getPhinxType('date'));
     $this->assertEquals('datetime', $this->adapter->getPhinxType('datetime'));
 }