Skip to content

Commit 7e7027a

Browse files
committed
nolog: remove tests for ReadWriteConfigPropertiesRule
1 parent e3ad5b9 commit 7e7027a

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed
Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
<?php declare(strict_types = 1);
22

3-
namespace Syntro\SilverstripePHPStan\Tests\Rule;
3+
// namespace Syntro\SilverstripePHPStan\Tests\Rule;
44

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;
99

10-
class ReadWriteConfigPropertiesRuleTest extends \PHPStan\Testing\RuleTestCase
11-
{
10+
// class ReadWriteConfigPropertiesRuleTest extends \PHPStan\Testing\RuleTestCase
11+
// {
1212

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+
// }
2222

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+
// }
3333

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

Comments
 (0)