Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function testDomainDoesNotDependOnOtherLayers(): Rule |
||
17 | { |
||
18 | return PHPat::rule() |
||
19 | ->classes(Selector::inNamespace(self::DOMAIN_NAMESPACE)) |
||
20 | ->shouldNotDependOn() |
||
21 | ->classes( |
||
22 | Selector::inNamespace(self::PLUGIN_NAMESPACE), |
||
23 | Selector::inNamespace(self::LEGACY_NAMESPACE), |
||
24 | Selector::inNamespace(self::FRAMEWORK_NAMESPACE), |
||
25 | )->because('Domain code should not depend on any other code') |
||
26 | ; |
||
52 |