83 Commits

Author SHA1 Message Date
TomasVotruba
09cf6f8a4a move core architecture to own set 2020-02-13 14:44:36 +01:00
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
c1c0e37690 [Symfony] refactor to ServiceMap 2019-12-17 01:21:18 +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
8c259c8d92 add stubs over mirror class names in tests 2019-09-30 09:12:25 +02:00
Tomas Votruba
ed0e2ca0eb use setParameter() 2019-09-28 14:30:12 +02:00
Tomas Votruba
0da741a9a3 drop @return type from Iterator in tests 2019-09-27 14:40:09 +02:00
Tomas Votruba
6ef6f073b6 [tests] switch testFiles to data providers 2019-09-12 10:18:26 +02:00
Tomas Votruba
6f983ad302 improve getByType() 2019-09-11 20:12:09 +02:00
Tomas Votruba
82efb89940 use object types over strings 2019-09-06 12:29:55 +02:00
Tomas Votruba
154a4e4012 Fix ContainerGetToConstructorInjectionRector to add parent::__construct() to commands 2019-07-04 12:37:01 +03:00
Tomas Votruba
522fc0ca58 rename level dir to set 2019-06-08 22:41:52 +02:00
Tomas Votruba
661d2c8e54 fix array indent 2019-05-28 18:27:38 +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
aa1083882e report invalid array/param syntax in config [closes #983] 2019-02-07 09:17:42 +01:00
Tomas Votruba
91960dd621 simplify test 2019-02-07 09:17:42 +01:00
Tomas Votruba
0db2b07d49 rename *.yml to *.yaml 2019-02-03 18:46:45 +01:00
Jan Mikeš
a78d88a87c
Added NewObjectToFactoryCreateRector 2019-01-24 23:39:42 +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
7b669d89ba [Doctrine] Make ReplaceParentRepositoryCallsByRepositoryPropertyRector 2018-10-28 17:50:10 +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
3233316053 Make ConstructorMethodBuilder respect parent constructor 2018-10-20 09:38:49 +02:00
Ben Davies
4cfd1a6752 add tests for property to constructor injection when class is in inheritance chain 2018-10-19 16:29:39 +02:00
Tomas Votruba
70ea05352d [JMS] Add JmsInjectAnnotationRector 2018-10-19 08:04:16 +02:00
Tomas Votruba
0cacba00ff Add class-based annotation support to AnnotatedPropertyInjectToConstructorInjectionRector 2018-10-16 23:41:18 +08:00
Tomas Votruba
86614bba3a [Architecture] Add failing test for #700 2018-10-16 20:53:22 +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
06865fb2af tests: delegate spaces to CS tool 2018-09-28 00:12:10 +08:00
Tomas Votruba
4b4547d3cc use FQN in tests, delegate to coding standard tool 2018-09-27 22:33:15 +08:00
Ben Davies
f0ddbbec97 add a few test to highlight issues with AnnotatedPropertyInjectToConstructorInjectionRector 2018-09-27 14:49:47 +01:00
Tomas Votruba
45ca92729d symplify PropertyTypeResolver 2018-08-14 13:28:46 +02:00
Tomas Votruba
8dcc357104 remove duplicated test 2018-08-01 21:31:16 +02:00
Tomas Votruba
3b2304e1da add ConfiguredCodeSample 2018-08-01 21:31:01 +02:00
Tomas Votruba
34f8dd5b0f fix config path 2018-07-23 17:30:40 +02:00
Gabriel Caruso
33658e5987
Remove unused import 2018-07-04 00:40:39 -03:00
Tomas Votruba
01652b1f9e add another config test 2018-06-06 11:11:09 +02:00
Tomas Votruba
3c8e4cf735 fix annotation in @covers test 2018-06-06 11:11:09 +02:00
Tomas Votruba
6cbb2fc07e move AnnotatedPropertyInjectToConstructorInjectionRector to general rectors 2018-06-06 11:11:09 +02:00
Tomas Votruba
efe9aab684 move ArrayToYieldDataProvider to PHPUnit group 2018-06-02 16:28:34 +02:00
Tomas Votruba
f680e197ac [PHPUnit] make ArrayToYieldDataProviderRector cover 'dataProvider' name as well 2018-06-02 16:23:43 +02:00
Tomas Votruba
e409490e4d [DoctrineRepositoryAsService] decouple dependency on specific class 2018-05-31 19:47:56 +02:00