From 7e421fe93d38b8b0c6f179cce3b8a35d076c703e Mon Sep 17 00:00:00 2001 From: xamgore <xamgore@ya.ru> Date: Wed, 24 Jun 2015 18:35:45 +0300 Subject: [PATCH] Defined the folders structure for unit-tests --- .../DisciplineTest.php} | 0 ~dev_rating/application/tests/readme.md | 10 +++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) rename ~dev_rating/application/tests/classes/{Model_Discipline_Test.php => Model/DisciplineTest.php} (100%) 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 9db502394..cb13059f2 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 -- GitLab