44 Commits

Author SHA1 Message Date
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
Tomas Votruba
d3a8f76acb make AdditionalAutoloader tolerant 2018-09-21 07:50:14 +02:00
Tomas Votruba
f4fb5a2529 surround string with # 2018-08-31 14:45:57 +02:00
Tomas Votruba
a11f9f98e1 add expectExceptionMessageRegExp support 2018-08-31 14:45:57 +02:00
Tomas Votruba
6b4c049b3a add test cases for exception code and multiple lines in try 2018-08-31 14:17:49 +02:00
Tomas Votruba
f2cfaa8c96 init TryCatchToExpectExceptionRector 2018-08-31 01:41:32 +02:00
Tomas Votruba
0bed1c2711 fix PHPUnit Rectors 2018-08-06 12:35:26 +02:00
Tomas Votruba
bb4340e855 fix class autoloading 2018-06-02 16:48:46 +02:00
Tomas Votruba
efe9aab684 move ArrayToYieldDataProvider to PHPUnit group 2018-06-02 16:28:34 +02:00
Tomas Votruba
1202dae5e3 move PHPUnit Rectors to own package 2018-06-02 13:29:48 +02:00