Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zend-paginator] use a temporary fixture test file for unit testing that git ignores #160

Merged
merged 1 commit into from
Dec 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
composer.lock
vendor
phpunit.xml
tests/Zend/Paginator/_files/test-write-tmp.sqlite
tests/TestConfiguration.php
4 changes: 3 additions & 1 deletion tests/Zend/Paginator/Adapter/DbSelectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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`');
Expand Down