Skip to content

Commit

Permalink
- update phpunit.xml
Browse files Browse the repository at this point in the history
- add note to readme.md to fix PHPUnit Deprecations
  • Loading branch information
n4ss1m committed Oct 27, 2024
1 parent 41498e6 commit 8318aa2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 16 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,17 @@ This package includes `api.php` routes, allowing you to interact with the data t
- [ ] Add support for additional languages
- [ ] Add a configuration file to allow customizing package behaviors
- [ ] Add support for caching to optimize API responses
- [ ] fix PHPUnit Deprecations

## Contribution

We welcome all contributions! Please follow these guidelines:

1. Adhere to the [PSR-12](https://www.php-fig.org/psr/psr-12/) coding standard.
2. Document any changes in behavior — ensure `README.md` and other relevant documentation are updated accordingly.
3. Submit one pull request per feature — for multiple changes, create separate pull requests.
1. Document any changes in behavior — ensure `README.md` updated accordingly.
2. Write tests to cover any new functionality.
3. Please ensure that your pull request passes all tests.

## Reporting Issues & Suggesting Features
## Issues & Suggesting Features

If you encounter any issues or have ideas for new features, please [open an issue](https://github.com/kossa/algerian-cities/issues/new).

Expand Down
35 changes: 23 additions & 12 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd"
backupGlobals="false"
bootstrap="vendor/autoload.php"
colors="true"
processIsolation="false"
stopOnFailure="false"
executionOrder="random"
failOnWarning="true"
failOnRisky="true"
failOnEmptyTestSuite="true"
beStrictAboutOutputDuringTests="true"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false"
>
<testsuites>
<testsuite name="algerian cities Unit Test Suite">
<directory suffix="Test.php">./tests</directory>
<testsuite name="Laravel Algerian Cities Tests">
<directory>tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
<php>
<env name="APP_ENV" value="testing"/>
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
</php>
Expand Down

0 comments on commit 8318aa2

Please sign in to comment.