| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function testsPluginDoesNotDependOnFrameworkLayer(): Rule |
||
| 30 | { |
||
| 31 | return PHPat::rule() |
||
| 32 | ->classes(Selector::inNamespace(self::PLUGIN_NAMESPACE)) |
||
| 33 | ->shouldNotDependOn() |
||
| 34 | ->classes( |
||
| 35 | Selector::inNamespace(self::FRAMEWORK_NAMESPACE), |
||
| 36 | Selector::inNamespace(self::LEGACY_NAMESPACE), |
||
| 37 | )->because('Plugin code should not depend on framework or legacy code') |
||
| 38 | ; |
||
| 52 |