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

Rewrite phpunit tests to pest #183

Merged
merged 1 commit into from
Mar 10, 2022
Merged

Rewrite phpunit tests to pest #183

merged 1 commit into from
Mar 10, 2022

Conversation

otsch
Copy link
Contributor

@otsch otsch commented Mar 9, 2022

Also fix problems because null as second argument for DOMDocument and
as argument for htmlspecialchars is deprecated. Further update PHP CS
Fixer setup.

@@ -26,7 +26,9 @@ public function __construct(
array $domProperties = [],
?bool $xmlStandalone = null
) {
$this->document = new DOMDocument($xmlVersion, $xmlEncoding);
$this->document = $xmlEncoding === null ?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a functional change. Could you revert all changes to this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted it. Sorry, I'm running PHP 8.1...just checked, it works on PHP 8.0.

tests/ArrayToXmlTest.php Outdated Show resolved Hide resolved
Also fix problems because null as second argument for DOMDocument and
as argument for htmlspecialchars is deprecated. Further update PHP CS
Fixer setup.
@freekmurze
Copy link
Member

Thanks!

weirdan added a commit to weirdan/array-to-xml that referenced this pull request Dec 13, 2022
This will help backporting changes from main branch
freekmurze pushed a commit that referenced this pull request Dec 13, 2022
* Backport misc changes

* Backport `Rewrite phpunit tests to pest` (#183)

This will help backporting changes from main branch

* Backport e46df26

* Backport b80f142

* Backport aaa512f

* Backport dd6f7de

* Backport 14ac461

* Backport 670ede8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants