Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsn committed Dec 27, 2024
1 parent 873d92e commit 2f19a7c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:
with:
php-version: ${{ matrix.php-versions }}
tools: composer, phive, phpunit
extensions: intl, json, mbstring, gd, xdebug, xml, sqlite3, sqlsrv-5.10.1, oci8, pgsql
extensions: intl, json, mbstring, gd, xdebug, xml, sqlite3, sqlsrv, oci8, pgsql
coverage: xdebug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
12 changes: 0 additions & 12 deletions tests/_support/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,4 @@ protected function tearDown(): void
// Reset the current time.
Time::setTestNow();
}

/**
* Handle custom field type conversion for SQLSRV
*/
public function field(string $name): string
{
if ($this->db->DBDriver === 'SQLSRV') {
return "CONVERT(VARCHAR(MAX), {$name})";
}

return $name;
}
}

0 comments on commit 2f19a7c

Please sign in to comment.