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

Some simplifications and code polish #59

Merged
merged 11 commits into from
Sep 7, 2024
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,27 @@ Before the first time you run them, you may need to run:
composer install
```

## Windows TESTING
For local Windows Testing, you will need to install xdebug and add
```php.ini
zend_extension=xdebug
xdebug.mode=coverage
```

and set composer.json scripts line to:
```
"scripts": {
"test": ["vendor/bin/phpunit -c phpunit.dist.xml"]
},
```

## xUX TESTING:
For local xUX or online github/codeforce testing, in composer.json set scripts line to:
```
"scripts": {
"test": ["XDEBUG_MODE=coverage vendor/bin/phpunit -c phpunit.dist.xml"]
},
```

## License
[MIT](LICENSE.md)
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"require": {
"php": ">= 7.3",
"ext-json": "*",
"guzzlehttp/guzzle": "^6.3 || ^7.0"
},
"require-dev": {
Expand All @@ -26,6 +27,9 @@
"php-coveralls/php-coveralls": "^2.5"
},
"scripts": {
"test": ["XDEBUG_MODE=coverage vendor/bin/phpunit -c phpunit.dist.xml"]
"test": ["vendor/bin/phpunit -c phpunit.dist.xml"]
},
"scripts-descriptions": {
"test" : "Set PHP.ini xdebug.mode=coverage (windows) OR set 'test':['XMODE_DEBUG=coverage vendor/bin/phpunit ...'] (linux)"
}
}
Loading