From 72c262814c0bfbbf7f24c2dd653de36c9ce87212 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 16 Nov 2022 22:44:57 +0700 Subject: [PATCH] Use a temporary fixture test file for unit testing that git ignores MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Elan Ruusamäe Co-authored-by: Elan Ruusamäe --- .gitignore | 1 + tests/Zend/Paginator/Adapter/DbSelectTest.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8ea882705..f39513ece 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ composer.lock vendor phpunit.xml +tests/Zend/Paginator/_files/test-write-tmp.sqlite tests/TestConfiguration.php \ No newline at end of file diff --git a/tests/Zend/Paginator/Adapter/DbSelectTest.php b/tests/Zend/Paginator/Adapter/DbSelectTest.php index 7c22bff67..c56230212 100644 --- a/tests/Zend/Paginator/Adapter/DbSelectTest.php +++ b/tests/Zend/Paginator/Adapter/DbSelectTest.php @@ -296,7 +296,9 @@ public function testSelectDistinctAllUsesRegularCountAll() */ public function testSelectHasAliasedColumns() { - $db = $this->_db; + $db = new Zend_Db_Adapter_Pdo_Sqlite(array( + 'dbname' => dirname(__FILE__) . '/../_files/test-write-tmp.sqlite' + )); $db->query('DROP TABLE IF EXISTS `sandboxTransaction`'); $db->query('DROP TABLE IF EXISTS `sandboxForeign`');