phpat icon indicating copy to clipboard operation
phpat copied to clipboard

PHP Architecture Tester - Easy architecture testing for PHP :heavy_check_mark:

Results 23 phpat issues
Sort by recently updated
recently updated
newest added

**Enhancement description** While defining my rules, I need to define some fine grained rules such as: * If class implements interface X, I want it to use trait `A or...

enhancement

Right now only classes defined by PSR-0 or PSR-4 are extracted from composer.json We should also extract the ones defined by 'files' ``` "autoload": { "files": [ "src/SomeClass.php", "src/functions.php" ],...

enhancement

**Enhancement description** This is loosely based on #142 and #140, expands on it after several days of real-world usage, and actual refactoring based on this tool's output. In no particular...

enhancement

**Enhancement description** In case of errors being found while running, output also the number of errors, not only the fact that it errored. This is invaluable to see whether the...

enhancement
:computer: in progress
:+1:

**Enhancement description** It would be great to have the option of checking if a class has some dependency/inheritance/mixin/composition not only by itself but coming from a parent. **Suggested approach or...

enhancement
:computer: in progress

**Enhancement description** My code is structured in such a way that the top level namespaces do not depend on each other, except for some strictly defined exceptions, e.g. assuming I...

enhancement
help wanted
:+1:

**Enhancement description** At the moment, every assertion requires specifying another selector for a relation. There are no assertions which can assert a certain characteristic of the selected classes. For example,...

enhancement
:lock: on hold
:+1:

**Enhancement description** `phpat` provides assertion on dependencies which is very useful for ensuring loose coupling between different layers or domains in a project. I think would be useful to have...

enhancement
:+1:

**Enhancement description** It would be really useful if you can point `phpat` to certain classes like entities, repositories etc. when using Doctrine or another data mapper. It's usually easy with...

enhancement