feature: Добавлена база фильтров и первые тесты
Showing
- .gitignore 1 addition, 0 deletions.gitignore
- .php-cs-fixer.php 2 additions, 1 deletion.php-cs-fixer.php
- composer.json 5 additions, 1 deletioncomposer.json
- src/.gitkeep 0 additions, 0 deletionssrc/.gitkeep
- src/Filter/Like.php 20 additions, 0 deletionssrc/Filter/Like.php
- src/Filter/Where.php 22 additions, 0 deletionssrc/Filter/Where.php
- src/HttpFilter.php 49 additions, 0 deletionssrc/HttpFilter.php
- src/HttpFilterEntityRepository.php 35 additions, 0 deletionssrc/HttpFilterEntityRepository.php
- src/QueryFilterInterface.php 14 additions, 0 deletionssrc/QueryFilterInterface.php
- tests/Entity/Comment.php 46 additions, 0 deletionstests/Entity/Comment.php
- tests/Entity/Post.php 53 additions, 0 deletionstests/Entity/Post.php
- tests/FilterByWhereTest.php 113 additions, 0 deletionstests/FilterByWhereTest.php
- tests/Fixture/BaseFixture.php 21 additions, 0 deletionstests/Fixture/BaseFixture.php
- tests/Fixture/CommentFixture.php 42 additions, 0 deletionstests/Fixture/CommentFixture.php
- tests/Fixture/PostFixture.php 27 additions, 0 deletionstests/Fixture/PostFixture.php
- tests/Repository/CommentRepository.php 23 additions, 0 deletionstests/Repository/CommentRepository.php
- tests/Repository/PostRepository.php 23 additions, 0 deletionstests/Repository/PostRepository.php
- tests/TestCase.php 95 additions, 1 deletiontests/TestCase.php
... | ... | @@ -9,7 +9,11 @@ |
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^12.0", | ||
"friendsofphp/php-cs-fixer": "^3.70" | ||
"friendsofphp/php-cs-fixer": "^3.70", | ||
"symfony/cache": "^7.2", | ||
"doctrine/migrations": "^3.8", | ||
"doctrine/data-fixtures": "^2.0", | ||
"fakerphp/faker": "^1.24" | ||
}, | ||
"license": "MIT", | ||
"autoload": { | ||
... | ... |
src/.gitkeep
deleted
100644 → 0
src/Filter/Like.php
0 → 100644
src/Filter/Where.php
0 → 100644
src/HttpFilter.php
0 → 100644
src/HttpFilterEntityRepository.php
0 → 100644
src/QueryFilterInterface.php
0 → 100644
tests/Entity/Comment.php
0 → 100644
tests/Entity/Post.php
0 → 100644
tests/FilterByWhereTest.php
0 → 100644
tests/Fixture/BaseFixture.php
0 → 100644
tests/Fixture/CommentFixture.php
0 → 100644
tests/Fixture/PostFixture.php
0 → 100644
tests/Repository/CommentRepository.php
0 → 100644
tests/Repository/PostRepository.php
0 → 100644
Please register or sign in to comment