Skip to content

Conversation

@greg0ire
Copy link
Member

No description provided.

GromNaN and others added 4 commits December 7, 2025 01:07
1) Doctrine\Tests\Persistence\Mapping\AbstractClassMetadataFactoryTest::testItGetsTheSameMetadataForBackslashedClassName
No expectations were configured for the mock object for Doctrine\Persistence\Mapping\Driver\MappingDriver. You should refactor your test code and use a test stub instead.
Fix PHPUnit warning for mocks without expectation, use stubs instead
This is the configuration I used:

	<?php

	declare(strict_types=1);

	use Rector\Config\RectorConfig;

	return RectorConfig::configure()
	    ->withPaths([
		__DIR__ . '/tests',
	    ])
	    ->withPhpSets();
@greg0ire greg0ire merged commit 5877c65 into 4.2.x Jan 24, 2026
20 checks passed
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.

3 participants