59 Commits

Author SHA1 Message Date
TomasVotruba
5f523b5727 [PHPUnit][Symfony] Add jakzal-injetor Rector 2019-11-18 16:21:11 +01:00
TomasVotruba
14acb884cd [PHPUnit 8.0] Add ReplaceAssertArraySubsetWithDmsPolyfillRector 2019-11-14 17:08:10 +01:00
TomasVotruba
6384f729e6 [PHPUnit] Fix #2279 2019-11-14 16:12:48 +01:00
Tomas Votruba
8d57420bd6 use yieldFilesFromDirectory() in tests instead of explicid fixture naming 2019-11-05 18:02:26 +01:00
Tomas Votruba
ced5f813aa add dead-code set to CI, make NameResolver exception on method call more verbose 2019-10-30 23:33:11 +01:00
Dave Liddament
d61d175178 FIX AddDoesNotPerformAssertionToNonAssertingTest
Fix bug where rector added @doesNotPerformAssertion when using
2019-10-29 16:18:13 +00:00
Tomas Votruba
848c43dc6d [PHPUnit] Add WithConsecutiveArgToArrayRector 2019-10-27 14:29:28 +01:00
Tomas Votruba
042e1c45e0 [PHPUnit 6] Add AddDoesNotPerformAssertionToNonAssertingTestRector 2019-10-13 17:01:38 +02:00
Tomas Votruba
9f3f49437e [PHPUnit] [Doc] Add FixDataProviderAnnotationTypoRector 2019-10-13 08:32:06 +02:00
Tomas Votruba
d1118c1ab4 [PHPUnit] [Doc] Add EnsureDataProviderInDocBlockRector 2019-10-13 08:21:10 +02:00
Tomas Votruba
acfd930f54 apply PSR-12 2019-10-13 08:09:08 +02:00
Tomas Votruba
8246bcb38a [PHPUnit] Add RemoveDataProviderTestPrefixRector 2019-10-11 12:03:07 +01:00
Jonas Elfering
f2bf84a9d4 Add fixture for phpunit x>y to greaterThan refactoring
Fixes: https://github.com/rectorphp/rector/issues/1726
2019-10-04 15:15:11 +02:00
Tomas Votruba
b4dcb809af fix @TODO malfforms 2019-10-02 20:45:51 +02:00
Tomas Votruba
0da741a9a3 drop @return type from Iterator in tests 2019-09-27 14:40:09 +02:00
Tomas Votruba
2244dad326 [tests] add PhpVersionFeature value object + fix public of protected function 2019-09-15 16:37:38 +02:00
Tomas Votruba
4c9ecba04c [tests] switch testFiles to data providers 2019-09-12 10:18:26 +02:00
Tomas Votruba
b700e2f9ad add variable_name to ArrayArgumentInTestToDataProviderRector and fix array nesting 2019-09-12 10:18:26 +02:00
Tomas Votruba
2c3d2616c6 improve class rename in doc blocks 2019-09-11 16:02:35 +02:00
Tomas Votruba
622b6c1460 migrate TypeInferers to PHPStan object types 2019-09-10 20:40:43 +02:00
Tomas Votruba
84f72f7c4a [PHPUnit] Add array call to data provider 2019-09-04 10:51:54 +02:00
Tomas Votruba
79ffad4a0b add @see annotations 2019-09-03 14:05:21 +02:00
Tomas Votruba
1a0db5e25c [PHPUnit] Add AddSeeTestAnnotationRector 2019-09-03 14:02:42 +02:00
Ravan Scafi
8bf272e585
Fix multilevel array subsets 2019-07-08 18:13:31 -03:00
Tomas Votruba
14c3251887 [PHPUnit] Add RemoveExpectAnyFromMockRector 2019-04-06 20:12:44 +02:00
Tomas Votruba
0f179983de Move argument discovery from RegexDashEscapeRector to RegexPatternArgumentManipulator 2019-03-31 14:18:18 +02:00
Tomas Votruba
1e248217ef [PHPUnit] Add TestListenerToHooksRector 2019-03-31 12:28:17 +02:00
Tomas Votruba
c78d415413 [PHPUnit] Improve DelegateExceptionArgumentsRector to work with setExpectedExceptionRegExp() 2019-03-13 14:13:49 +01:00
Tomas Votruba
ca204319b1 [PHPUnit] Add ReplaceAssertArraySubsetRector 2019-03-13 11:14:29 +01:00
Tomas Votruba
cdeb98f27a fix SpecificAssertContainsRector 2019-02-09 12:27:26 +01:00
Tomas Votruba
e6a5f55f94 drop ArrayToYieldDataProviderRector instead, update docs 2019-01-03 17:39:25 +01:00
Tomas Votruba
c5e9428490 [PHPUnit] Add UseSpecificWillMethodRector 2018-12-31 22:07:12 +01:00
Tomas Votruba
80404600aa [PHPUnit] add test case for is_readable [closes #851] 2018-12-31 13:09:33 +01:00
Tomas Votruba
65764c4eec shorten indent on test file list 2018-12-17 01:28:51 +01:00
Tomas Votruba
9d8be88d2f fix printer to keep '(param): ReturnType' spacing 2018-12-17 01:27:38 +01:00
Tomas Votruba
3ce2e41a03 remove unused configs 2018-12-16 02:39:26 +01:00
Tomas Votruba
45248dee04 Add AssertEqualsParameterToSpecificMethodsTypeRector 2018-12-11 13:02:28 +01:00
Tomas Votruba
ba3d0707e6 remove unused configs 2018-12-10 16:40:09 +01:00
Tomas Votruba
a59e35678c Add SpecificAssertInternalTypeRector 2018-12-10 16:01:14 +01:00
Tomas Votruba
e1a386054b [PHPUnit] Add SpecificAssertContainsRector 2018-12-10 16:01:14 +01:00
Tomas Votruba
2a00f0d51b rename Wrong ns to Fixture in tests 2018-12-07 21:51:59 +01:00
Tomas Votruba
837606ab50 add assertNot* cases to AssertTrueFalseToSpecificMethodRector 2018-12-06 02:30:36 +01:00
Tomas Votruba
ef288d4045 [tests] rename test files to fixtures 2018-12-06 02:09:02 +01:00
Tomas Votruba
3420edeae3 add JoinWrongAndCorrectTestsRector
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-04 03:10:15 +01:00
Tomas Votruba
7c6a8be85e simlify tests by SimplifyTestsRector
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-03 22:53:11 +01:00
Tomas Votruba
73466ac247 rename test files method to provideFiles()
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-03 20:13:46 +01:00
Gabriel Caruso
3ba2759970
[PHPUnit] Convert iterator_count into assertCount 2018-11-18 13:19:15 -02:00
Gabriel Caruso
5d304b3aee
[PHPUnit] Fix AssertCompareToSpecificMethodRector false positives
When a property, method or variable has one of the names to be
refactored, e.g. `count`, it gets wrong refactored
2018-10-21 14:00:00 -03:00
Tomas Votruba
486f7f4b64 [PHPUnit] Add SimplifyForeachInstanceOfRector 2018-10-21 13:17:20 +02:00
Tomas Votruba
5c3067c95d fix StringFormTypeToClassRector 2018-09-21 07:50:14 +02:00