From d58107a19e7bcd39bb9be8236ab19fbeb865eaff Mon Sep 17 00:00:00 2001 From: Carlos C Soto Date: Sat, 8 Nov 2025 15:38:11 -0600 Subject: [PATCH 1/3] Remove parentheses from `return` calls --- src/Definitions/CancelStorePending.php | 2 +- src/Services/Cancel/AcceptRejectUuidStatus.php | 2 +- src/Services/Stamping/StampingResult.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Definitions/CancelStorePending.php b/src/Definitions/CancelStorePending.php index 8bf683e..33fade4 100644 --- a/src/Definitions/CancelStorePending.php +++ b/src/Definitions/CancelStorePending.php @@ -14,6 +14,6 @@ class CancelStorePending extends Enum { public function asBool(): bool { - return ('yes' === $this->value()); + return 'yes' === $this->value(); } } diff --git a/src/Services/Cancel/AcceptRejectUuidStatus.php b/src/Services/Cancel/AcceptRejectUuidStatus.php index ccf9065..e8fecf5 100644 --- a/src/Services/Cancel/AcceptRejectUuidStatus.php +++ b/src/Services/Cancel/AcceptRejectUuidStatus.php @@ -41,6 +41,6 @@ public function getMessage(): string public function isSuccess(): bool { - return ('1000' === $this->getCode()); + return '1000' === $this->getCode(); } } diff --git a/src/Services/Stamping/StampingResult.php b/src/Services/Stamping/StampingResult.php index 490319b..40e1ee9 100644 --- a/src/Services/Stamping/StampingResult.php +++ b/src/Services/Stamping/StampingResult.php @@ -68,6 +68,6 @@ public function alerts(): StampingAlerts public function hasAlerts(): bool { - return ($this->alerts->count() > 0); + return $this->alerts->count() > 0; } } From 9db08e8b6b8c2c9669acd4ef5275d7481ca5db31 Mon Sep 17 00:00:00 2001 From: Carlos C Soto Date: Sat, 8 Nov 2025 15:47:40 -0600 Subject: [PATCH 2/3] Use parameter names instead of set default fixed values --- src/Helpers/GetSatStatusExtractor.php | 2 +- src/SoapCaller.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Helpers/GetSatStatusExtractor.php b/src/Helpers/GetSatStatusExtractor.php index 091ce52..cd22da9 100644 --- a/src/Helpers/GetSatStatusExtractor.php +++ b/src/Helpers/GetSatStatusExtractor.php @@ -48,7 +48,7 @@ public static function fromXmlDocument(DOMDocument $document): self $values = $discoverer->obtain($document); } catch (UnmatchedDocumentException $exception) { $message = 'Unable to obtain the expression values, document must be valid a CFDI version 4.0, 3.3 or 3.2'; - throw new RuntimeException($message, 0, $exception); + throw new RuntimeException($message, previous: $exception); } return new self($values); } diff --git a/src/SoapCaller.php b/src/SoapCaller.php index 2c88727..e8b16ef 100644 --- a/src/SoapCaller.php +++ b/src/SoapCaller.php @@ -64,7 +64,7 @@ public function call(string $methodName, array $parameters): stdClass ), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES ))); - throw new RuntimeException(sprintf('Fail soap call to %s', $methodName), 0, $exception); + throw new RuntimeException(sprintf('Fail soap call to %s', $methodName), previous: $exception); } } From f1dbfd70cfb409659b7d3798d7e547b555c49af9 Mon Sep 17 00:00:00 2001 From: Carlos C Soto Date: Sat, 8 Nov 2025 15:48:46 -0600 Subject: [PATCH 3/3] Improve calls to fileContentPath --- .../Unit/Services/Cancel/AcceptRejectSignatureServiceTest.php | 2 +- tests/Unit/Services/Cancel/CancelSignatureServiceTest.php | 2 +- tests/Unit/Services/Cancel/GetPendingServiceTest.php | 2 +- tests/Unit/Services/Cancel/GetReceiptServiceTest.php | 2 +- tests/Unit/Services/Cancel/GetRelatedSignatureServiceTest.php | 2 +- tests/Unit/Services/Cancel/GetSatStatusServiceTest.php | 2 +- tests/Unit/Services/Manifest/GetContractsServiceTest.php | 2 +- .../Unit/Services/Manifest/GetSignedContractsServiceTest.php | 2 +- tests/Unit/Services/Manifest/SignContractsServiceTest.php | 2 +- tests/Unit/Services/Registration/AddServiceTest.php | 2 +- tests/Unit/Services/Registration/AssignServiceTest.php | 2 +- tests/Unit/Services/Registration/EditServiceTest.php | 2 +- .../Unit/Services/Registration/ObtainCustomersServiceTest.php | 2 +- tests/Unit/Services/Registration/ObtainServiceTest.php | 2 +- tests/Unit/Services/Registration/SwitchServiceTest.php | 2 +- tests/Unit/Services/Retentions/CancelSignatureServiceTest.php | 2 +- tests/Unit/Services/Retentions/StampServiceTest.php | 2 +- tests/Unit/Services/Retentions/StampedServiceTest.php | 2 +- tests/Unit/Services/Stamping/QueryPendingServiceTest.php | 2 +- tests/Unit/Services/Stamping/QuickStampServiceTest.php | 2 +- tests/Unit/Services/Stamping/StampServiceTest.php | 2 +- tests/Unit/Services/Stamping/StampedServiceTest.php | 2 +- tests/Unit/Services/Utilities/DatetimeServiceTest.php | 4 ++-- tests/Unit/Services/Utilities/DownloadXmlServiceTest.php | 2 +- tests/Unit/Services/Utilities/ReportCreditServiceTest.php | 2 +- tests/Unit/Services/Utilities/ReportTotalServiceTest.php | 2 +- tests/Unit/Services/Utilities/ReportUuidServiceTest.php | 2 +- 27 files changed, 28 insertions(+), 28 deletions(-) diff --git a/tests/Unit/Services/Cancel/AcceptRejectSignatureServiceTest.php b/tests/Unit/Services/Cancel/AcceptRejectSignatureServiceTest.php index c9107bd..c88ba94 100644 --- a/tests/Unit/Services/Cancel/AcceptRejectSignatureServiceTest.php +++ b/tests/Unit/Services/Cancel/AcceptRejectSignatureServiceTest.php @@ -15,7 +15,7 @@ final class AcceptRejectSignatureServiceTest extends TestCase public function testServiceUsingPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('cancel-accept-reject-signature-response.json')); + $preparedResult = json_decode($this->fileContentPath('cancel-accept-reject-signature-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; $settings = $this->createSettingsFromEnvironment($soapFactory); diff --git a/tests/Unit/Services/Cancel/CancelSignatureServiceTest.php b/tests/Unit/Services/Cancel/CancelSignatureServiceTest.php index f94b6ff..ef90770 100644 --- a/tests/Unit/Services/Cancel/CancelSignatureServiceTest.php +++ b/tests/Unit/Services/Cancel/CancelSignatureServiceTest.php @@ -16,7 +16,7 @@ final class CancelSignatureServiceTest extends TestCase public function testServiceUsingPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('cancel-cancelsignature-response-2-items.json')); + $preparedResult = json_decode($this->fileContentPath('cancel-cancelsignature-response-2-items.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Cancel/GetPendingServiceTest.php b/tests/Unit/Services/Cancel/GetPendingServiceTest.php index 6e73a3b..cfb878b 100644 --- a/tests/Unit/Services/Cancel/GetPendingServiceTest.php +++ b/tests/Unit/Services/Cancel/GetPendingServiceTest.php @@ -15,7 +15,7 @@ final class GetPendingServiceTest extends TestCase public function testServiceUsingPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('cancel-get-pending-response-2-items.json')); + $preparedResult = json_decode($this->fileContentPath('cancel-get-pending-response-2-items.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Cancel/GetReceiptServiceTest.php b/tests/Unit/Services/Cancel/GetReceiptServiceTest.php index 80218a0..6a1c4a6 100644 --- a/tests/Unit/Services/Cancel/GetReceiptServiceTest.php +++ b/tests/Unit/Services/Cancel/GetReceiptServiceTest.php @@ -16,7 +16,7 @@ final class GetReceiptServiceTest extends TestCase public function testServiceUsingPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('cancel-get-receipt-response.json')); + $preparedResult = json_decode($this->fileContentPath('cancel-get-receipt-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Cancel/GetRelatedSignatureServiceTest.php b/tests/Unit/Services/Cancel/GetRelatedSignatureServiceTest.php index f1e54a7..38333e0 100644 --- a/tests/Unit/Services/Cancel/GetRelatedSignatureServiceTest.php +++ b/tests/Unit/Services/Cancel/GetRelatedSignatureServiceTest.php @@ -15,7 +15,7 @@ final class GetRelatedSignatureServiceTest extends TestCase public function testServiceUsingPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('cancel-get-related-signature-response.json')); + $preparedResult = json_decode($this->fileContentPath('cancel-get-related-signature-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Cancel/GetSatStatusServiceTest.php b/tests/Unit/Services/Cancel/GetSatStatusServiceTest.php index 7481a8a..f7d73a8 100644 --- a/tests/Unit/Services/Cancel/GetSatStatusServiceTest.php +++ b/tests/Unit/Services/Cancel/GetSatStatusServiceTest.php @@ -15,7 +15,7 @@ final class GetSatStatusServiceTest extends TestCase public function testServiceUsingPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('cancel-get-sat-status-response.json')); + $preparedResult = json_decode($this->fileContentPath('cancel-get-sat-status-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Manifest/GetContractsServiceTest.php b/tests/Unit/Services/Manifest/GetContractsServiceTest.php index 330a1dc..767d036 100644 --- a/tests/Unit/Services/Manifest/GetContractsServiceTest.php +++ b/tests/Unit/Services/Manifest/GetContractsServiceTest.php @@ -15,7 +15,7 @@ final class GetContractsServiceTest extends TestCase public function testServiceUsingPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('manifest-getcontracts-response.json')); + $preparedResult = json_decode($this->fileContentPath('manifest-getcontracts-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Manifest/GetSignedContractsServiceTest.php b/tests/Unit/Services/Manifest/GetSignedContractsServiceTest.php index 78528a5..c4be62d 100644 --- a/tests/Unit/Services/Manifest/GetSignedContractsServiceTest.php +++ b/tests/Unit/Services/Manifest/GetSignedContractsServiceTest.php @@ -16,7 +16,7 @@ final class GetSignedContractsServiceTest extends TestCase public function testServiceUsingPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('manifest-getsignedcontracts-response.json')); + $preparedResult = json_decode($this->fileContentPath('manifest-getsignedcontracts-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Manifest/SignContractsServiceTest.php b/tests/Unit/Services/Manifest/SignContractsServiceTest.php index 806319b..0bb6cc8 100644 --- a/tests/Unit/Services/Manifest/SignContractsServiceTest.php +++ b/tests/Unit/Services/Manifest/SignContractsServiceTest.php @@ -15,7 +15,7 @@ final class SignContractsServiceTest extends TestCase public function testServiceUsingPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('manifest-signcontracts-response.json')); + $preparedResult = json_decode($this->fileContentPath('manifest-signcontracts-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Registration/AddServiceTest.php b/tests/Unit/Services/Registration/AddServiceTest.php index 083e697..99c2ccd 100644 --- a/tests/Unit/Services/Registration/AddServiceTest.php +++ b/tests/Unit/Services/Registration/AddServiceTest.php @@ -16,7 +16,7 @@ final class AddServiceTest extends TestCase public function testServiceUsingPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('registration-add-response.json')); + $preparedResult = json_decode($this->fileContentPath('registration-add-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Registration/AssignServiceTest.php b/tests/Unit/Services/Registration/AssignServiceTest.php index 7d3ca1d..8b9e1e1 100644 --- a/tests/Unit/Services/Registration/AssignServiceTest.php +++ b/tests/Unit/Services/Registration/AssignServiceTest.php @@ -15,7 +15,7 @@ final class AssignServiceTest extends TestCase public function testServiceUsingPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('registration-assign-response.json')); + $preparedResult = json_decode($this->fileContentPath('registration-assign-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Registration/EditServiceTest.php b/tests/Unit/Services/Registration/EditServiceTest.php index 0e51acc..f21d743 100644 --- a/tests/Unit/Services/Registration/EditServiceTest.php +++ b/tests/Unit/Services/Registration/EditServiceTest.php @@ -16,7 +16,7 @@ final class EditServiceTest extends TestCase public function testServiceUsingPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('registration-edit-response.json')); + $preparedResult = json_decode($this->fileContentPath('registration-edit-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Registration/ObtainCustomersServiceTest.php b/tests/Unit/Services/Registration/ObtainCustomersServiceTest.php index e0d824f..9a55b44 100644 --- a/tests/Unit/Services/Registration/ObtainCustomersServiceTest.php +++ b/tests/Unit/Services/Registration/ObtainCustomersServiceTest.php @@ -15,7 +15,7 @@ final class ObtainCustomersServiceTest extends TestCase public function testServiceUsingPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('registration-customers-response-2-items.json')); + $preparedResult = json_decode($this->fileContentPath('registration-customers-response-2-items.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Registration/ObtainServiceTest.php b/tests/Unit/Services/Registration/ObtainServiceTest.php index 35d7883..3470e36 100644 --- a/tests/Unit/Services/Registration/ObtainServiceTest.php +++ b/tests/Unit/Services/Registration/ObtainServiceTest.php @@ -15,7 +15,7 @@ final class ObtainServiceTest extends TestCase public function testServiceUsingPreparedResultWithRfc(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('registration-get-response.json')); + $preparedResult = json_decode($this->fileContentPath('registration-get-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Registration/SwitchServiceTest.php b/tests/Unit/Services/Registration/SwitchServiceTest.php index 384580b..40d1ae9 100644 --- a/tests/Unit/Services/Registration/SwitchServiceTest.php +++ b/tests/Unit/Services/Registration/SwitchServiceTest.php @@ -16,7 +16,7 @@ final class SwitchServiceTest extends TestCase public function testServiceUsingPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('registration-switch-response.json')); + $preparedResult = json_decode($this->fileContentPath('registration-switch-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Retentions/CancelSignatureServiceTest.php b/tests/Unit/Services/Retentions/CancelSignatureServiceTest.php index 7fe6c9e..07e31ff 100644 --- a/tests/Unit/Services/Retentions/CancelSignatureServiceTest.php +++ b/tests/Unit/Services/Retentions/CancelSignatureServiceTest.php @@ -17,7 +17,7 @@ final class CancelSignatureServiceTest extends TestCase public function testServiceUsingPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('retentions-cancelsignature-response.json')); + $preparedResult = json_decode($this->fileContentPath('retentions-cancelsignature-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Retentions/StampServiceTest.php b/tests/Unit/Services/Retentions/StampServiceTest.php index 9874a99..dfe5f07 100644 --- a/tests/Unit/Services/Retentions/StampServiceTest.php +++ b/tests/Unit/Services/Retentions/StampServiceTest.php @@ -15,7 +15,7 @@ final class StampServiceTest extends TestCase public function testSignStampSendXmlAndProcessPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('retentions-stamp-response.json')); + $preparedResult = json_decode($this->fileContentPath('retentions-stamp-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Retentions/StampedServiceTest.php b/tests/Unit/Services/Retentions/StampedServiceTest.php index af54ae1..3e7605d 100644 --- a/tests/Unit/Services/Retentions/StampedServiceTest.php +++ b/tests/Unit/Services/Retentions/StampedServiceTest.php @@ -15,7 +15,7 @@ final class StampedServiceTest extends TestCase public function testSignStampSendXmlAndProcessPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('retentions-stamped-response.json')); + $preparedResult = json_decode($this->fileContentPath('retentions-stamped-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Stamping/QueryPendingServiceTest.php b/tests/Unit/Services/Stamping/QueryPendingServiceTest.php index 0d858ad..241aab9 100644 --- a/tests/Unit/Services/Stamping/QueryPendingServiceTest.php +++ b/tests/Unit/Services/Stamping/QueryPendingServiceTest.php @@ -15,7 +15,7 @@ final class QueryPendingServiceTest extends TestCase public function testCall(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('querypending-response.json')); + $preparedResult = json_decode($this->fileContentPath('querypending-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Stamping/QuickStampServiceTest.php b/tests/Unit/Services/Stamping/QuickStampServiceTest.php index 4cb6db4..eaa96d2 100644 --- a/tests/Unit/Services/Stamping/QuickStampServiceTest.php +++ b/tests/Unit/Services/Stamping/QuickStampServiceTest.php @@ -15,7 +15,7 @@ final class QuickStampServiceTest extends TestCase public function testQuickStampSendXmlAndProcessPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('quickstamp-response-with-alerts.json')); + $preparedResult = json_decode($this->fileContentPath('quickstamp-response-with-alerts.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Stamping/StampServiceTest.php b/tests/Unit/Services/Stamping/StampServiceTest.php index e3c4e66..00e1322 100644 --- a/tests/Unit/Services/Stamping/StampServiceTest.php +++ b/tests/Unit/Services/Stamping/StampServiceTest.php @@ -15,7 +15,7 @@ final class StampServiceTest extends TestCase public function testStampSendXmlAndProcessPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('stamp-response-with-alerts.json')); + $preparedResult = json_decode($this->fileContentPath('stamp-response-with-alerts.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Stamping/StampedServiceTest.php b/tests/Unit/Services/Stamping/StampedServiceTest.php index 64e3957..26a2555 100644 --- a/tests/Unit/Services/Stamping/StampedServiceTest.php +++ b/tests/Unit/Services/Stamping/StampedServiceTest.php @@ -15,7 +15,7 @@ final class StampedServiceTest extends TestCase public function testStampedSendXmlAndProcessPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('stamped-response-with-alerts.json')); + $preparedResult = json_decode($this->fileContentPath('stamped-response-with-alerts.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Utilities/DatetimeServiceTest.php b/tests/Unit/Services/Utilities/DatetimeServiceTest.php index 09bf270..36707fe 100644 --- a/tests/Unit/Services/Utilities/DatetimeServiceTest.php +++ b/tests/Unit/Services/Utilities/DatetimeServiceTest.php @@ -15,7 +15,7 @@ final class DatetimeServiceTest extends TestCase public function testDatetimeServiceUsingPreparedResultWithEmptyPostalCode(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('utilities-datetime-response.json')); + $preparedResult = json_decode($this->fileContentPath('utilities-datetime-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; @@ -34,7 +34,7 @@ public function testDatetimeServiceUsingPreparedResultWithEmptyPostalCode(): voi public function testDatetimeServiceUsingPreparedResultWithPostalCode(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('utilities-datetime-response.json')); + $preparedResult = json_decode($this->fileContentPath('utilities-datetime-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Utilities/DownloadXmlServiceTest.php b/tests/Unit/Services/Utilities/DownloadXmlServiceTest.php index f3cf447..02101bd 100644 --- a/tests/Unit/Services/Utilities/DownloadXmlServiceTest.php +++ b/tests/Unit/Services/Utilities/DownloadXmlServiceTest.php @@ -15,7 +15,7 @@ final class DownloadXmlServiceTest extends TestCase public function testServiceUsingPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('utilities-getxml-response.json')); + $preparedResult = json_decode($this->fileContentPath('utilities-getxml-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Utilities/ReportCreditServiceTest.php b/tests/Unit/Services/Utilities/ReportCreditServiceTest.php index 8d22a35..ce862f1 100644 --- a/tests/Unit/Services/Utilities/ReportCreditServiceTest.php +++ b/tests/Unit/Services/Utilities/ReportCreditServiceTest.php @@ -15,7 +15,7 @@ final class ReportCreditServiceTest extends TestCase public function testServiceUsingPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('utilities-report-credit-response.json')); + $preparedResult = json_decode($this->fileContentPath('utilities-report-credit-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Utilities/ReportTotalServiceTest.php b/tests/Unit/Services/Utilities/ReportTotalServiceTest.php index bc57821..d0ae098 100644 --- a/tests/Unit/Services/Utilities/ReportTotalServiceTest.php +++ b/tests/Unit/Services/Utilities/ReportTotalServiceTest.php @@ -15,7 +15,7 @@ final class ReportTotalServiceTest extends TestCase public function testServiceUsingPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('utilities-report-total-response.json')); + $preparedResult = json_decode($this->fileContentPath('utilities-report-total-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult; diff --git a/tests/Unit/Services/Utilities/ReportUuidServiceTest.php b/tests/Unit/Services/Utilities/ReportUuidServiceTest.php index 214214a..2a64cbb 100644 --- a/tests/Unit/Services/Utilities/ReportUuidServiceTest.php +++ b/tests/Unit/Services/Utilities/ReportUuidServiceTest.php @@ -16,7 +16,7 @@ final class ReportUuidServiceTest extends TestCase public function testServiceUsingPreparedResult(): void { /** @var stdClass $preparedResult */ - $preparedResult = json_decode(TestCase::fileContentPath('utilities-report-uuid-response.json')); + $preparedResult = json_decode($this->fileContentPath('utilities-report-uuid-response.json')); $soapFactory = new FakeSoapFactory(); $soapFactory->preparedResult = $preparedResult;