View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0032814 | mantisbt | api soap | public | 2023-08-09 12:47 | 2023-10-31 16:32 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Target Version | 2.26.0 | Fixed in Version | 2.26.0 | ||
Summary | 0032814: PHPUnit SOAP API tests trigger syntax error when extension is not loaded | ||||
Description | PHP Fatal error: Uncaught Error: Undefined constant "WSDL_CACHE_NONE" This is due to declaration of SoapBase::$defaultSoapClientOptions referencing the the constant, which does not exist when the extension is not loaded. Initialization should be moved to setUp() method. | ||||
Tags | No tags attached. | ||||
MantisBT: master e6827c4a 2023-08-09 12:48 Details Diff |
Fix errors when SOAP extension is not loaded Initialize defaultSoapClientOptions property in setUp(), to avoid a syntax error due to undefined constant WSDL_CACHE_NONE. Remove useless SoapAllTests::setUp() method. TestSuite class does not have this method so it is never actually called. Extension availability check is performed by `@requires extension` hints in the test cases' PHPDoc blocks. Fixes 0032814 |
Affected Issues 0032814 |
|
mod - tests/soap/AllTests.php | Diff File | ||
mod - tests/soap/SoapBase.php | Diff File |