|
1 | 1 | <?php declare(strict_types = 1); |
2 | 2 |
|
3 | | -namespace Syntro\SilverstripePHPStan\Tests\Rule; |
| 3 | +// namespace Syntro\SilverstripePHPStan\Tests\Rule; |
4 | 4 |
|
5 | | -use Syntro\SilverstripePHPStan\Rule\ReadWriteConfigPropertiesRule; |
6 | | -use Syntro\SilverstripePHPStan\Reflection\ReadWritePropertiesExtension; |
7 | | -use Syntro\SilverstripePHPStan\Tests\Rule\DirectReadWritePropertiesExtensionProvider; |
8 | | -use PHPStan\Rules\Rule; |
| 5 | +// use Syntro\SilverstripePHPStan\Rule\ReadWriteConfigPropertiesRule; |
| 6 | +// use Syntro\SilverstripePHPStan\Reflection\ReadWritePropertiesExtension; |
| 7 | +// use Syntro\SilverstripePHPStan\Tests\Rule\DirectReadWritePropertiesExtensionProvider; |
| 8 | +// use PHPStan\Rules\Rule; |
9 | 9 |
|
10 | | -class ReadWriteConfigPropertiesRuleTest extends \PHPStan\Testing\RuleTestCase |
11 | | -{ |
| 10 | +// class ReadWriteConfigPropertiesRuleTest extends \PHPStan\Testing\RuleTestCase |
| 11 | +// { |
12 | 12 |
|
13 | | - protected function getRule(): Rule |
14 | | - { |
15 | | - return new ReadWriteConfigPropertiesRule( |
16 | | - new DirectReadWritePropertiesExtensionProvider([new ReadWritePropertiesExtension()]), |
17 | | - [], |
18 | | - [], |
19 | | - true |
20 | | - ); |
21 | | - } |
| 13 | +// protected function getRule(): Rule |
| 14 | +// { |
| 15 | +// return new ReadWriteConfigPropertiesRule( |
| 16 | +// new DirectReadWritePropertiesExtensionProvider([new ReadWritePropertiesExtension()]), |
| 17 | +// [], |
| 18 | +// [], |
| 19 | +// true |
| 20 | +// ); |
| 21 | +// } |
22 | 22 |
|
23 | | - public function testAddsHintsForConfigurable(): void |
24 | | - { |
25 | | - $this->analyse([__DIR__ . '/Data/ReadWritePropertiesConfig.php'], [ |
26 | | - [ |
27 | | - 'Have you forgotten to add "@config" for the property $this_should_be_config of the configurable class Syntro\SilverstripePHPStan\Tests\Rule\Data\Foo?', |
28 | | - 11, |
29 | | - 'See: https://docs.silverstripe.org/en/4/developer_guides/configuration/configuration/', |
30 | | - ], |
31 | | - ]); |
32 | | - } |
| 23 | +// public function testAddsHintsForConfigurable(): void |
| 24 | +// { |
| 25 | +// $this->analyse([__DIR__ . '/Data/ReadWritePropertiesConfig.php'], [ |
| 26 | +// [ |
| 27 | +// 'Have you forgotten to add "@config" for the property $this_should_be_config of the configurable class Syntro\SilverstripePHPStan\Tests\Rule\Data\Foo?', |
| 28 | +// 11, |
| 29 | +// 'See: https://docs.silverstripe.org/en/4/developer_guides/configuration/configuration/', |
| 30 | +// ], |
| 31 | +// ]); |
| 32 | +// } |
33 | 33 |
|
34 | | - public function testAddsNoHintsForNoConfigurable(): void |
35 | | - { |
36 | | - $this->analyse([__DIR__ . '/Data/ReadWritePropertiesNoConfig.php'], []); |
37 | | - } |
38 | | -} |
| 34 | +// public function testAddsNoHintsForNoConfigurable(): void |
| 35 | +// { |
| 36 | +// $this->analyse([__DIR__ . '/Data/ReadWritePropertiesNoConfig.php'], []); |
| 37 | +// } |
| 38 | +// } |
0 commit comments