60 Commits

Author SHA1 Message Date
TomasVotruba
607358a8e1 move src classes to Rector\Core namespace to prevent duplications 2020-02-07 00:57:45 +01:00
TomasVotruba
447c2ead87 naming conventions for test fixtures 2020-02-02 18:37:04 +01:00
TomasVotruba
c7656e7951 [NetteToSymfony] Add FormControlToControllerAndFormTypeRector 2019-12-22 19:37:46 +01:00
TomasVotruba
c7622ca5e8 prevent duplicated added interface 2019-12-19 23:55:50 +01:00
TomasVotruba
7711b0aeba [Class_] Add AddInterfaceByTraitRector 2019-12-19 23:12:25 +01:00
Tomas Votruba
8d57420bd6 use yieldFilesFromDirectory() in tests instead of explicid fixture naming 2019-11-05 18:02:26 +01:00
Tomas Votruba
acfd930f54 apply PSR-12 2019-10-13 08:09:08 +02:00
Tomas Votruba
0da741a9a3 drop @return type from Iterator in tests 2019-09-27 14:40:09 +02:00
Tomas Votruba
17d14ba4ac move RenameClassRector to Renaming package 2019-09-23 17:41:47 +02:00
Tomas Votruba
6ef6f073b6 [tests] switch testFiles to data providers 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
056b0bbff9 fixing import rectors 2019-09-11 13:00:51 +02:00
Tomas Votruba
622b6c1460 migrate TypeInferers to PHPStan object types 2019-09-10 20:40:43 +02:00
Tomas Votruba
04d01ffdfe add Symfony Validator annotations 2019-08-30 23:08:03 +02:00
Tomas Votruba
2b51b257e1 decouple PhpDocClassRenamer 2019-08-30 22:29:51 +02:00
Tomas Votruba
677e920dbe [RenameClassRector] Include @ORM, @Assert, @Serializer etc annotations 2019-08-21 18:32:14 +02:00
Tomas Votruba
4cec86bbe0 remove preslash of use imports from RenameClassRetor 2019-07-02 22:08:45 +02:00
Tomas Votruba
661d2c8e54 fix array indent 2019-05-28 18:27:38 +02:00
Jan Mikeš
9958a44ec3
Added support for renaming class and it’s namespace 2019-05-08 13:00:28 +02:00
Tomas Votruba
1fe23d12c8 merge getRectorClass() and getRectorConfiguration() 2019-04-29 07:36:22 +02:00
Tomas Votruba
71f1af830c [tests] Refactor tests to use container just once, if not enforced config 2019-04-29 00:36:52 +02:00
Tomas Votruba
3aad57ab4e add function to RenameClass 2019-03-16 01:26:35 +01:00
Tomas Votruba
6b58c4b1ca make twig-related doc test fail 2019-03-16 01:26:35 +01:00
Jáchym Toušek
74a6524cf8
Add test 2019-03-15 16:29:57 +01:00
Tomas Votruba
2cfea9d710 rename ClassReplacerRector to RenameClassRector 2019-03-09 12:56:58 +00:00
Tomas Votruba
84846d685a add test case to keep namespace imported, make use of new type detection 2019-02-16 22:18:05 +01:00
Tomas Votruba
4c67d7d6f9 fix symfony42 config 2019-02-16 13:10:48 +01:00
Tomas Votruba
1723104705 add parent class re-write test case 2019-02-16 13:10:07 +01:00
Tomas Votruba
3617b4f774 Validate used import statement 2019-02-16 13:09:22 +01:00
Tomas Votruba
91dfacb431 consolidate tests 2019-01-14 14:31:36 +01:00
Tomas Votruba
72e8411fc2 prevent class <=> interface replacing on incorrect places 2019-01-14 13:45:28 +01:00
Tomas Votruba
607da366aa fix ClassReplacerRector for class to interface rename [closes #950] 2019-01-14 12:46:19 +01:00
Tomas Votruba
65764c4eec shorten indent on test file list 2018-12-17 01:28:51 +01:00
Tomas Votruba
2a00f0d51b rename Wrong ns to Fixture in tests 2018-12-07 21:51:59 +01:00
Tomas Votruba
ef288d4045 [tests] rename test files to fixtures 2018-12-06 02:09:02 +01:00
Tomas Votruba
689555219f apply ConfiguredProvideConfigRector
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-04 21:17:06 +01:00
Tomas Votruba
54d13ece1d refactor with JoinWrongAndCorrectRector 2018-12-04 16:48:11 +01:00
Tomas Votruba
7ac6f10039 refactor /tests by JoinTestAndProvideFilesRector
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-04 15:34:40 +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
Tomas Votruba
2125e24e1f normalize printer to keep 1 single line in the end + apply to code 2018-10-27 14:57:53 +02:00
Tomas Votruba
3aef267709 [Class] Add case sensitive test for Class Replace 2018-10-22 19:40:27 +02:00
Tomas Votruba
631040dda9 return commented tests 2018-10-21 11:27:40 +02:00
Tomas Votruba
3660362e32 apply simple config on levels 2018-10-06 09:26:35 +08:00
Tomas Votruba
5b65bb52fa tests: fix conflicting validating by autoloading only Wrong files in tests 2018-10-04 15:24:53 +08:00
Tomas Votruba
b30fa8a047 bump to php-parser 4.0.4 2018-09-21 14:09:32 +02:00
Tomas Votruba
b9c9005d78 manual update 2018-08-15 11:11:15 +02:00
Tomas Votruba
54805f1df5 cleanup forgotten comments 2018-08-07 08:18:41 +02:00
Tomas Votruba
a5f44c997d use service type resolving over global one 2018-08-06 12:35:26 +02:00
Tomas Votruba
c61296741b use service type resolving over global one 2018-08-06 12:35:26 +02:00
Tomas Votruba
430d423256 use service type resolving over global one 2018-08-06 12:35:26 +02:00