-
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #205 from weierophinney/feature/php-8.1-support
Provide PHP 8.1 support
- Loading branch information
Showing
338 changed files
with
6,417 additions
and
5,569 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
/.phpcs-cache | ||
/.phpunit.result.cache | ||
/.vagrant/ | ||
/clover.xml | ||
/coveralls-upload.json | ||
/docs/html/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,8 @@ | |
"pgsql", | ||
"sqlite3", | ||
"sqlsrv" | ||
] | ||
], | ||
"ignore_php_platform_requirements": { | ||
"8.1": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,58 @@ | ||
# laminas-db | ||
|
||
[![Build Status](https://github.com/laminas/laminas-config/workflows/Continuous%20Integration/badge.svg)](https://github.com/laminas/laminas-config/actions?query=workflow%3A"Continuous+Integration") | ||
[![Build Status](https://github.com/laminas/laminas-db/workflows/Continuous%20Integration/badge.svg)](https://github.com/laminas/laminas-db/actions?query=workflow%3A"Continuous+Integration") | ||
|
||
`Laminas\Db` is a component that abstract the access to a Database using an object | ||
oriented API to build the queries. `Laminas\Db` consumes different storage adapters | ||
to access different database vendors such as MySQL, PostgreSQL, Oracle, IBM DB2, | ||
Microsoft Sql Server, PDO, etc. | ||
|
||
## Contributing | ||
|
||
Please be sure to read the [contributor's guide](/laminas/.github/blob/main/CONTRIBUTING.md) for general information on contributing. | ||
This section outlines specifics for laminas-db. | ||
|
||
### Test suites | ||
|
||
The `phpunit.xml.dist` file defines two test suites, "unit test" and "integration test". | ||
You can run one or the other using the `--testsuite` option to `phpunit`: | ||
|
||
```bash | ||
$ ./vendor/bin/phpunit --testsuite "unit test" # unit tests only | ||
$ ./vendor/bin/phpunit --testsuite "integration test" # integration tests only | ||
``` | ||
|
||
Unit tests do not require additional functionality beyond having the appropriate database extensions present and loaded in your PHP binary. | ||
|
||
### Integration tests | ||
|
||
To run the integration tests, you need databases. | ||
The repository includes a `Vagrantfile` which allows you to fire up a [vagrant box](https://app.vagrantup.com) with several of our target databases, including: | ||
|
||
- MySQL | ||
- PostgreSQL | ||
- SQL Server | ||
|
||
To start up vagrant: | ||
|
||
```bash | ||
$ vagrant up | ||
``` | ||
|
||
Copy `phpunit.xml.dist` to `phpunit.xml`, and change the following ENV var declaration values to "true": | ||
|
||
- TESTS_LAMINAS_DB_ADAPTER_DRIVER_MYSQL | ||
- TESTS_LAMINAS_DB_ADAPTER_DRIVER_SQLSRV | ||
- TESTS_LAMINAS_DB_ADAPTER_DRIVER_PGSQL | ||
- TESTS_LAMINAS_DB_ADAPTER_DRIVER_SQLITE_MEMORY | ||
|
||
From there, you can run the integration tests: | ||
|
||
```bash | ||
$ ./vendor/bin/phpunit --testsuite "integration test" | ||
``` | ||
|
||
----- | ||
|
||
- File issues at https://github.com/laminas/laminas-db/issues | ||
- Documentation is at https://docs.laminas.dev/laminas-db/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.