From 0d123f0d80380de020d5c31c440602a84321a7b4 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Sun, 13 Dec 2009 14:31:42 -0500 Subject: [PATCH] Match spaces in the decimal precision --- framework/Db/test/Horde/Db/Adapter/Pdo/SqliteTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() -- 2.11.0