diff --git a/~dev_rating/application/tests/classes/Model_Discipline_Test.php b/~dev_rating/application/tests/classes/Model/DisciplineTest.php similarity index 100% rename from ~dev_rating/application/tests/classes/Model_Discipline_Test.php rename to ~dev_rating/application/tests/classes/Model/DisciplineTest.php diff --git a/~dev_rating/application/tests/readme.md b/~dev_rating/application/tests/readme.md index 9db50239429d3907e0419c66afaf84f94665f201..cb13059f2352a48311a9a3b0465eeffa0dc0e78c 100644 --- a/~dev_rating/application/tests/readme.md +++ b/~dev_rating/application/tests/readme.md @@ -4,4 +4,12 @@ Instruction: 2. (From app/system dir) Tools -> Add dependency -> phpunit/phpunit -> install 3. Settings -> Composer -> Path to bootstrap: /grade-rating/~dev_rating/system/composer.json 4. Go to any test from /app/tests folder -5. Right mouse click -> Run \ No newline at end of file +5. Right mouse click -> Run + + +Notes: + +1. All tests are stored in the `application/tests` folder. +2. Tree structure should be saved (like in `application/classes`). +3. Append `Test` to all scripts, i.e. `tests/classes/Model/DisciplineTest.php` + containing `Model_Discipline_Test` class. \ No newline at end of file