Tomas Votruba
a1e50263d2
[cs] improve configured rules types ( #4491 )
...
* [cs] improve configured rules types
* [ci] update env variable
2020-10-27 14:00:39 +00:00
Tomas Votruba
a6e85fe69a
[PHPUnit] Fix AddSeeTestAnnotationRector for same short name, but different namespace ( #4488 )
...
* [PHPUnit] Fix AddSeeTestAnnotationRector for same short name, but different namespace
* correct namespaces
2020-10-27 00:42:04 +00:00
Tomas Votruba
70bf2ea830
[DOCS] Switch DumpRectorCommand from console to string printer ( #4281 )
...
* monorepob-builder: add v prefix
* monorepob-builder: add v prefix
* bump symplify
* decouple SymfonyConsole from DumpRectorCommand
* moving to migrify php-config-printer
* regenerate docs
* include rules oerview
2020-09-24 18:54:39 +00:00
Tomas Votruba
d7f90774ee
allow php-parser 4.10 + fixes of args merge change ( #4277 )
...
* allow php-parser 4.10 + fixes of args merge change
* use fixed php-parser 4.10.1
2020-09-23 20:22:35 +00:00
Chun-Sheng, Li
471e820d4e
Add self call fixtures for AssertResourceToClosed ( #4103 )
2020-09-02 11:53:55 +02:00
Chun-Sheng, Li
020c7b82b0
[PHPUnit] Add self call fixtures for AssertEqualsToSame rule ( #4098 )
2020-09-01 18:11:30 +02:00
Tomas Votruba
b281fb1260
StaticCall to MethodCall ( #4085 )
...
* drop MessageAsArrayRector, as only rule in guzzle
* [Transform] Move StaticCallToMethodCallRector to Transform
* merge FacadeStaticCallToConstructorInjectionRector to StaticCallToMethodCallRector
* add ArrayArgumentToDataProvider
* [Transform] Move PropertyAssignToMethodCallRector to Transform
2020-08-31 08:48:14 +00:00
Chun-Sheng, Li
0a589f9f68
Add AssertResourceToClosedResourceRector rule ( #4037 )
...
* Add AssertResourceToClosedResourceRector rule
* Using @source and @see comment annotations
2020-08-28 07:01:40 +02:00
Tomas Votruba
650dcc8ef0
beware reference ( #4039 )
2020-08-27 12:19:22 +02:00
dobryy
2e7bdca4e2
[DX] Rename namespaces respect node type ( #3973 )
2020-08-18 17:57:30 +02:00
Mark Sch
2d7469efb8
Add AssertEqualsToSameRector ( #3958 )
2020-08-15 19:35:07 +02:00
Tomas Votruba
172653b606
drop EnsureDataProviderInDocBlockRector, job for coding standards ( #3938 )
2020-08-10 10:40:22 +02:00
Tomas Votruba
3ddf965146
FunctionTo* correction renames, add PHPStan rule to check correct category of rule ( #3896 )
...
* rename Function* to Func* rector rule
* [Utils] Add RequireRectorCategoryByGetNodeTypesRule
* [PHPUnit] Rename SpecificMethod to MethodCall category to respect subscriberd nodes
* [rector] [PHPUnit] Rename SpecificMethod to MethodCall category to respect subscriberd nodes
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-04 10:02:17 +00:00
TomasVotruba
fe72e003ed
use constants in configs
2020-07-30 13:53:53 +02:00
TomasVotruba
0944b75f7e
correct namespace in configs
2020-07-18 11:58:17 +02:00
TomasVotruba
a8a6e7bcad
rename file to fileInfo
2020-06-30 01:45:05 +02:00
TomasVotruba
7f49658112
change test(string ) to test(SmartFileInfo ) in tests
2020-06-25 20:02:36 +02:00
TomasVotruba
c504062ec2
add typed property if on PHP 7.4
2020-06-24 15:09:50 +02:00
TomasVotruba
e16559faf7
Fix AddDoesNotPerformAssertionToNonAssertingTestRector for mockery
2020-06-10 21:47:21 +02:00
TomasVotruba
97f8aece27
add test case for #3157
2020-05-12 16:41:59 +02:00
TomasVotruba
b5846db7a9
[PHPUnit] Fix CreateMockToCreateStubRector outside PHPUnit test case
2020-05-12 16:39:17 +02:00
TomasVotruba
7ae2145d14
improve NodeFactory adding @var type via phpstan type
2020-05-05 22:33:00 +02:00
TomasVotruba
73a5c61a92
drop FixDataProviderAnnotationTypoRector, fixing typos in single docblock annotation is too narrow
2020-05-05 15:43:55 +02:00
TomasVotruba
e8ac877527
remove @todo from fixtures
2020-05-05 14:24:56 +02:00
TomasVotruba
440e4af280
[PHPUnit] Fix ExceptionAnnotationRector for null phpdoc
2020-04-20 09:40:21 +02:00
TomasVotruba
0939387553
use getProperty()
2020-04-19 23:27:37 +02:00
TomasVotruba
c6bc133cb3
[PHPUnit] Add strict param to ReplaceAssertArraySubsetRector
2020-04-19 01:16:27 +02:00
TomasVotruba
b3fde24ab1
[PHPUnit] Add AddProphecyTraitRector
2020-04-01 02:37:21 +02:00
TomasVotruba
eb88378488
improve chain method call resolutuin
2020-03-23 17:33:04 +01:00
TomasVotruba
44a1654b66
split fixture
2020-03-23 17:16:10 +01:00
Grégoire Paris
88f27689eb
WIP add createMock to createStub rector
2020-03-23 17:16:10 +01:00
nightlinus
e2b5ff1df2
SpecificAssertContainsWithoutIdentityRector: add phpunit 9 compatibility rector
...
As of https://github.com/sebastianbergmann/phpunit/issues/3426 assertContains() and assertNotContains() will perform strict comparisons starting with PHPUnit 9 where non-strict comparisons were performed in PHPUnit 8 and earlier; assertContainsEqual() and assertNotContainsEqual() should be used instead if needed non-strict comparison
2020-03-15 12:16:55 +03:00
Dorian Villet
b550b6bf3b
Fix various static calls errors in PHPUnit Rectors.
2020-03-03 13:35:18 +01:00
Dorian Villet
454e78ce8a
AssertTrueFalseToSpecificMethodRector: add broken test ('Pick more specific node than PhpParser\Node\Expr\StaticCall').
2020-03-03 09:59:49 +01:00
TomasVotruba
903483bf96
decouple ClassInsertManipulator
2020-02-29 22:10:06 +01:00
Tomas Votruba
8f3e90ba7f
Merge pull request #2956 from gnutix/AssertTrueFalseInternalTypeToSpecificMethodRector/add-broken-test-method-call
...
AssertTrueFalseInternalTypeToSpecificMethodRector: add broken test method call
2020-02-29 01:23:55 +01:00
Tomas Votruba
1452472fc5
Merge pull request #2951 from gnutix/AddSeeTestAnnotationRectorTest/add-broken-test-simple-comment
...
AddSeeTestAnnotationRectorTest: add broken test for simple comment.
2020-02-29 01:21:48 +01:00
Dorian Villet
cbdc4a1c2f
AssertTrueFalseInternalTypeToSpecificMethodRector: add broken test on method call.
2020-02-28 17:20:54 +01:00
Dorian Villet
1a26e05ecc
AssertRegExpRectorTest: add broken test when calling static method.
2020-02-28 16:54:12 +01:00
Dorian Villet
05792e6a82
AddSeeTestAnnotationRectorTest: add broken test for simple comment.
2020-02-28 16:24:03 +01:00
TomasVotruba
3e5dd77bb6
move Rector-rule based packages from /packages to /rules
2020-02-11 13:41:37 +01:00