Forked this library to make some changes I need. I ran unit tests without changing code to see if things are in good working order and encountered fatals. It seems this library expects external dependencies to run tests?
> vendor/bin/phpunit
EEEEEE.................PHP Fatal error: Uncaught Elastica\Exception\Connection\HttpException: Couldn't connect to host, Elasticsearch down? in /var/www/personal/audit-stash/vendor/ruflin/elastica/src/Transport/Http.php:186
Stack trace:
#0 /var/www/personal/audit-stash/vendor/ruflin/elastica/src/Request.php(183): Elastica\Transport\Http->exec()
#1 /var/www/personal/audit-stash/vendor/ruflin/elastica/src/Client.php(545): Elastica\Request->send()
#2 /var/www/personal/audit-stash/vendor/ruflin/elastica/src/Client.php(584): Elastica\Client->request()
#3 /var/www/personal/audit-stash/vendor/ruflin/elastica/src/Status.php(163): Elastica\Client->requestEndpoint()
#4 /var/www/personal/audit-stash/vendor/ruflin/elastica/src/Status.php(53): Elastica\Status->refresh()
#5 /var/www/personal/audit-stash/vendor/ruflin/elastica/src/Status.php(66): Elastica\Status->getData()
#6 /var/www/personal/audit-stash/vendor/cakephp/elastic-search/src/Datasource/SchemaCollection.php(51): Elastica\Status->getIndexNames()
#7 /var/www/personal/audit-stash/vendor/cakephp/cakephp/s in /var/www/personal/audit-stash/vendor/ruflin/elastica/src/Transport/Http.php on line 186
Fatal error: Uncaught Elastica\Exception\Connection\HttpException: Couldn't connect to host, Elasticsearch down? in /var/www/personal/audit-stash/vendor/ruflin/elastica/src/Transport/Http.php:186
Stack trace:
#0 /var/www/personal/audit-stash/vendor/ruflin/elastica/src/Request.php(183): Elastica\Transport\Http->exec()
#1 /var/www/personal/audit-stash/vendor/ruflin/elastica/src/Client.php(545): Elastica\Request->send()
#2 /var/www/personal/audit-stash/vendor/ruflin/elastica/src/Client.php(584): Elastica\Client->request()
#3 /var/www/personal/audit-stash/vendor/ruflin/elastica/src/Status.php(163): Elastica\Client->requestEndpoint()
#4 /var/www/personal/audit-stash/vendor/ruflin/elastica/src/Status.php(53): Elastica\Status->refresh()
#5 /var/www/personal/audit-stash/vendor/ruflin/elastica/src/Status.php(66): Elastica\Status->getData()
#6 /var/www/personal/audit-stash/vendor/cakephp/elastic-search/src/Datasource/SchemaCollection.php(51): Elastica\Status->getIndexNames()
#7 /var/www/personal/audit-stash/vendor/cakephp/cakephp/s in /var/www/personal/audit-stash/vendor/ruflin/elastica/src/Transport/Http.php on line 186
Additionally there are deprecation notices:
PHPUnit 8.5.33 by Sebastian Bergmann and contributors.
PHP Deprecated: You are using the listener based PHPUnit integration. This fixture system is deprecated, and we recommend you upgrade to the extension based PHPUnit integration. See https://book.cakephp.org/4/en/appendices/fixture-upgrade.html
/var/www/personal/audit-stash/vendor/cakephp/cakephp/src/TestSuite/Fixture/FixtureInjector.php, line: 79
You can disable all deprecation warnings by setting `Error.errorLevel` to `E_ALL & ~E_USER_DEPRECATED`. Adding `src/TestSuite/Fixture/FixtureInjector.php` to `Error.ignoredDeprecationPaths` in your `config/app.php` config will mute deprecations from that file only. in /var/www/personal/audit-stash/vendor/cakephp/cakephp/src/Core/functions.php on line 323
Deprecated: You are using the listener based PHPUnit integration. This fixture system is deprecated, and we recommend you upgrade to the extension based PHPUnit integration. See https://book.cakephp.org/4/en/appendices/fixture-upgrade.html
/var/www/personal/audit-stash/vendor/cakephp/cakephp/src/TestSuite/Fixture/FixtureInjector.php, line: 79
You can disable all deprecation warnings by setting `Error.errorLevel` to `E_ALL & ~E_USER_DEPRECATED`. Adding `src/TestSuite/Fixture/FixtureInjector.php` to `Error.ignoredDeprecationPaths` in your `config/app.php` config will mute deprecations from that file only. in /var/www/personal/audit-stash/vendor/cakephp/cakephp/src/Core/functions.php on line 323
Forked this library to make some changes I need. I ran unit tests without changing code to see if things are in good working order and encountered fatals. It seems this library expects external dependencies to run tests?
PHP version: 7.4 (initially tried on 8.1) Host: Ubuntu 22.04 Version: master
Additionally there are deprecation notices: