| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | public function testsLegacyDoesNotDependOnFrameworkLayer(): Rule |
||
| 42 | { |
||
| 43 | return PHPat::rule() |
||
| 44 | ->classes(Selector::inNamespace(self::LEGACY_NAMESPACE)) |
||
| 45 | ->shouldNotDependOn() |
||
| 46 | ->classes( |
||
| 47 | Selector::inNamespace(self::FRAMEWORK_NAMESPACE), |
||
| 48 | )->because('Legacy code should not depend on framework code') |
||
| 49 | ; |
||
| 52 |