133 Commits

Author SHA1 Message Date
Tomas Votruba
8d1b732d0f use ->name on method call 2019-10-24 11:54:47 +02:00
Tomas Votruba
160601c294 fix method case name [skip ci] 2019-10-17 18:51:08 +02:00
Tomas Votruba
495ace61c6 apply on self 2019-10-17 18:48:03 +02: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
8c259c8d92 add stubs over mirror class names in tests 2019-09-30 09:12:25 +02:00
Tomas Votruba
0da741a9a3 drop @return type from Iterator in tests 2019-09-27 14:40:09 +02:00
HypeMC
6cc4c56bba Fix various typos is code samples 2019-09-22 00:13:26 +02:00
Tomas Votruba
d6d48ea44b make ShouldNotHappenException smarter 2019-09-21 13:30:03 +02:00
Tomas Votruba
3f6fddee71 make DocBlockManipulator protected in AbstractRector + add ColumnGenerator annotatoin parsing 2019-09-19 17:30:31 +02:00
Tomas Votruba
ca7d0cba15 use PHP highlight for herenow doc 2019-09-18 09:14:06 +02:00
Tomas Votruba
07708261d2 fix cs 2019-09-17 13:21:29 +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
fe3152e817 add AssignManipulator + misc 2019-09-14 17:51:14 +02:00
Tomas Votruba
aa5bfc4921 fix array to provider rule 2019-09-13 08:32:33 +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
c040e15fb5 add @see why to data providers 2019-09-10 15:20:07 +02:00
Tomas Votruba
82efb89940 use object types over strings 2019-09-06 12:29:55 +02:00
Tomas Votruba
89e21ea68b merge NodeToStringTypeResolver, StaticTypeToStringResolver, PHPStan\StaticTypeToStringResolver to StaticTypeMapper 2019-09-04 12:23:03 +02:00
Tomas Votruba
84f72f7c4a [PHPUnit] Add array call to data provider 2019-09-04 10:51:54 +02:00
Tomas Votruba
f94d567f38 decouple ComposerAutoloadedDirectoryProvider 2019-09-03 14:46:47 +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
Tomas Votruba
2a0d0d7ac1 from helper methods to isStaticType() with PHPStan object typing 2019-09-03 10:06:04 +02:00
Tomas Votruba
f0d5b5af76 merge isName and isNameInsensitive 2019-08-25 13:02:19 +02:00
Tomas Votruba
9145e6685f composer: require nette/di to allow phpstan extension with Reference class 2019-08-05 16:50:34 +02:00
Ravan Scafi
8bf272e585
Fix multilevel array subsets 2019-07-08 18:13:31 -03:00
Tomas Votruba
57602fc3a9 fix new phpstan reports 2019-07-04 12:29:37 +03:00
Tomas Votruba
0973ceb8be apply import on packages 2019-04-17 22:28:45 +02:00
Tomas Votruba
e34a29ad15 Add BuilderFactory to AbstractRector 2019-04-13 01:32:50 +02: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
f8d5b06b59 Add PhpSpecPromisesToPHPUnitAssertRector, PhpSpecMethodToPHPUnitMethodRectory 2019-03-22 17:18:49 +01:00
Jacob Dreesen
93dfcf288e Fix some code samples (#1239)
* Fix code sample

* Fix code sample

* Fix code sample

* Fix code sample
2019-03-20 02:48:38 +01:00
Tomas Votruba
cae6f2a760 [NetteTesterToPHPUnit] Add NetteTesterClassToPHPUnitClassRector 2019-03-16 21:29:33 +01:00
Tomas Votruba
801d2e865a [PHPUnit] make Rectors work with self and this as well 2019-03-13 14:48:47 +01: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
Ben Davies
68394f43d8 remove incorrect docs 2019-03-11 22:46:02 +00:00
Tomas Votruba
e1d988da3a update to phpstan 0.11.3 2019-03-11 08:53:02 +00:00
Tomas Votruba
1d8deff30a [PHPUnit 8.0] Add null to assertInternalType conversion 2019-03-04 11:35:02 +01:00