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

allow PHPUnit 11 and adjust tests for PHPUnit 11 #1015

Merged
merged 1 commit into from
Aug 8, 2024
Merged

Conversation

LordSimal
Copy link
Contributor

No description provided.

@@ -69,16 +69,15 @@ public function testShutdown()
$update = $requests->updateQuery();
$debugInfoException = $requests->query()->contain('NonExistentAssociation');

$unserializable = new stdClass();
$unserializable->pdo = new PDO('sqlite::memory:');
$unserializableDebugInfo = new class extends stdClass {
Copy link
Member

Choose a reason for hiding this comment

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

I like this approach much better than mocks. We should do more of this 👏

@markstory markstory merged commit feedfb6 into 5.next Aug 8, 2024
7 checks passed
@markstory markstory deleted the phpunit11 branch August 8, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants