xy2z / capro

PHP8 static site generator
MIT License
8 stars 2 forks source link

PHPUnit tests for Collector class #26

Closed klezaic closed 1 year ago

klezaic commented 1 year ago

Implemented Unit test collection for all methods in Collector class (except for method debug()).

Also implemented a minor fix inCollector.php to properly filter out empty strings when using whereHas() and whereHasNot(). If you want me to remove this fix and revert the behavior of "whereHas() & whereHasNot()" to the previous version, where this method returns objects that have an empty string in the requested key, just leave a comment on this PR, please.

This PR Closes #23

xy2z commented 1 year ago

Perfect, thank you @klezaic