rules([ ConstructClassMethodToSetUpTestCaseRector::class, AssertSameTrueFalseToAssertTrueFalseRector::class, AssertEqualsToSameRector::class, PreferPHPUnitThisCallRector::class, YieldDataProviderRector::class, RemoveEmptyTestMethodRector::class, ReplaceTestAnnotationWithPrefixedFunctionRector::class, TestWithToDataProviderRector::class, AssertEqualsOrAssertSameFloatParameterToSpecificMethodsTypeRector::class, DataProviderArrayItemsNewLinedRector::class, FlipAssertRector::class, // narrow with consecutive NarrowIdenticalWithConsecutiveRector::class, NarrowSingleWillReturnCallbackRector::class, SingleWithConsecutiveToWithRector::class, NarrowUnusedSetUpDefinedPropertyRector::class, // specific asserts AssertCompareOnCountableWithMethodToAssertCountRector::class, AssertCompareToSpecificMethodRector::class, AssertComparisonToSpecificMethodRector::class, AssertNotOperatorRector::class, AssertTrueFalseToSpecificMethodRector::class, AssertSameBoolNullToSpecificMethodRector::class, AssertFalseStrposToContainsRector::class, AssertIssetToSpecificMethodRector::class, AssertInstanceOfComparisonRector::class, AssertPropertyExistsRector::class, AssertRegExpRector::class, SimplifyForeachInstanceOfRector::class, UseSpecificWillMethodRector::class, UseSpecificWithMethodRector::class, AssertEmptyNullableObjectToAssertInstanceofRector::class, /** * Improve direct testing of your code, without mock creep. Make it simple, clear and easy to maintain: * * @see https://blog.frankdejonge.nl/testing-without-mocking-frameworks/ * @see https://maksimivanov.com/posts/dont-mock-what-you-dont-own/ * @see https://dev.to/mguinea/stop-using-mocking-libraries-2f2k * @see https://mnapoli.fr/anonymous-classes-in-tests/ * @see https://steemit.com/php/@crell/don-t-use-mocking-libraries * @see https://davegebler.com/post/php/better-php-unit-testing-avoiding-mocks */ RemoveExpectAnyFromMockRector::class, SingleMockPropertyTypeRector::class, ]); };