From: Chuck Hagenbuch Date: Sun, 13 Dec 2009 19:31:42 +0000 (-0500) Subject: Match spaces in the decimal precision X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0d123f0d80380de020d5c31c440602a84321a7b4;p=horde.git Match spaces in the decimal precision --- diff --git a/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteTest.php b/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteTest.php index cc7192b18..eda3397d1 100644 --- a/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteTest.php +++ b/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteTest.php @@ -504,7 +504,7 @@ class Horde_Db_Adapter_Pdo_SqliteTest extends PHPUnit_Framework_TestCase $this->assertEquals('boolean', $beforeChange->getSqlType()); $this->_conn->changeColumn('sports', 'is_college', 'string', - array('limit' => '40')); + array('limit' => '40')); $afterChange = $this->_getColumn('sports', 'is_college'); $this->assertEquals('varchar(40)', $afterChange->getSqlType()); @@ -517,10 +517,10 @@ class Horde_Db_Adapter_Pdo_SqliteTest extends PHPUnit_Framework_TestCase $this->assertEquals('boolean', $beforeChange->getSqlType()); $this->_conn->changeColumn('sports', 'is_college', 'decimal', - array('precision' => '5', 'scale' => '2')); + array('precision' => '5', 'scale' => '2')); $afterChange = $this->_getColumn('sports', 'is_college'); - $this->assertEquals('decimal(5,2)', $afterChange->getSqlType()); + $this->assertRegExp('/^decimal\(5,\s*2\)$/', $afterChange->getSqlType()); } public function testRenameColumn()