-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Fixes #7022 TESTS_ZEND_HTTP_CLIENT_ONLINE check #7023
Conversation
It looks like you should use the configuration file when running tests. defined('TESTS_ZEND_HTTP_CLIENT_ONLINE') || define('TESTS_ZEND_HTTP_CLIENT_ONLINE', false); |
You can copy <testsuite name="Zend Framework Test Suite">
<!-- <directory>./ZendTest</directory> -->
<exclude>./ZendTest/_files/</exclude>
<exclude>./ZendTest/AllTests/</exclude>
<file>./ZendTest/Http/Client/StaticTest.php</file>
</testsuite> When using /*
* Load the user-defined test configuration file, if it exists; otherwise, load
* the default configuration.
*/
if (is_readable($zfCoreTests . DIRECTORY_SEPARATOR . 'TestConfiguration.php')) {
require_once $zfCoreTests . DIRECTORY_SEPARATOR . 'TestConfiguration.php';
} else {
require_once $zfCoreTests . DIRECTORY_SEPARATOR . 'TestConfiguration.php.dist';
} |
Tests should run even without including that config, so the patch is actually correct. |
In that case there are more issues, because when I run the command as provided by @gianarb I get a fatal error:
|
@Martin-P looks like these tests were not run in a loooong time then... |
@Martin-P ok for correct command to use configuration file..But for run tests I use |
…stants-undefined' into develop Close zendframework/zendframework#7023 Close zendframework/zendframework#7022
Tests works!
vendor/bin/phpunit tests/ZendTest/Http