diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..44d2e92 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/Code/Source/Config/vendor/ +/Code/Source/.phpunit.cache/ diff --git a/Source/.htaccess b/Code/Source/.htaccess similarity index 100% rename from Source/.htaccess rename to Code/Source/.htaccess diff --git a/Source/BusinessClass/BoxQuestion.php b/Code/Source/BusinessClass/BoxQuestion.php similarity index 100% rename from Source/BusinessClass/BoxQuestion.php rename to Code/Source/BusinessClass/BoxQuestion.php diff --git a/Source/BusinessClass/CheckBoxQuestion.php b/Code/Source/BusinessClass/CheckBoxQuestion.php similarity index 100% rename from Source/BusinessClass/CheckBoxQuestion.php rename to Code/Source/BusinessClass/CheckBoxQuestion.php diff --git a/Source/BusinessClass/Form.php b/Code/Source/BusinessClass/Form.php similarity index 100% rename from Source/BusinessClass/Form.php rename to Code/Source/BusinessClass/Form.php diff --git a/Source/BusinessClass/IPrintQuestionStrategy.php b/Code/Source/BusinessClass/IPrintQuestionStrategy.php similarity index 100% rename from Source/BusinessClass/IPrintQuestionStrategy.php rename to Code/Source/BusinessClass/IPrintQuestionStrategy.php diff --git a/Source/BusinessClass/Keyword.php b/Code/Source/BusinessClass/Keyword.php similarity index 100% rename from Source/BusinessClass/Keyword.php rename to Code/Source/BusinessClass/Keyword.php diff --git a/Source/BusinessClass/ListBoxQuestion.php b/Code/Source/BusinessClass/ListBoxQuestion.php similarity index 100% rename from Source/BusinessClass/ListBoxQuestion.php rename to Code/Source/BusinessClass/ListBoxQuestion.php diff --git a/Source/BusinessClass/Question.php b/Code/Source/BusinessClass/Question.php similarity index 100% rename from Source/BusinessClass/Question.php rename to Code/Source/BusinessClass/Question.php diff --git a/Source/BusinessClass/Response.php b/Code/Source/BusinessClass/Response.php similarity index 100% rename from Source/BusinessClass/Response.php rename to Code/Source/BusinessClass/Response.php diff --git a/Source/BusinessClass/TextQuestion.php b/Code/Source/BusinessClass/TextQuestion.php similarity index 100% rename from Source/BusinessClass/TextQuestion.php rename to Code/Source/BusinessClass/TextQuestion.php diff --git a/Source/Config/AltoRouter.php b/Code/Source/Config/AltoRouter.php similarity index 100% rename from Source/Config/AltoRouter.php rename to Code/Source/Config/AltoRouter.php diff --git a/Source/Config/Autoload.php b/Code/Source/Config/Autoload.php similarity index 100% rename from Source/Config/Autoload.php rename to Code/Source/Config/Autoload.php diff --git a/Source/Config/Clean.php b/Code/Source/Config/Clean.php similarity index 100% rename from Source/Config/Clean.php rename to Code/Source/Config/Clean.php diff --git a/Source/Config/SplClassLoader.php b/Code/Source/Config/SplClassLoader.php similarity index 100% rename from Source/Config/SplClassLoader.php rename to Code/Source/Config/SplClassLoader.php diff --git a/Source/Config/Validate.php b/Code/Source/Config/Validate.php similarity index 100% rename from Source/Config/Validate.php rename to Code/Source/Config/Validate.php diff --git a/Source/Config/composer.json b/Code/Source/Config/composer.json similarity index 100% rename from Source/Config/composer.json rename to Code/Source/Config/composer.json diff --git a/Source/Config/composer.lock b/Code/Source/Config/composer.lock similarity index 100% rename from Source/Config/composer.lock rename to Code/Source/Config/composer.lock diff --git a/Source/Config/config.php b/Code/Source/Config/config.php similarity index 100% rename from Source/Config/config.php rename to Code/Source/Config/config.php diff --git a/Source/Controller/ControllerAdmin.php b/Code/Source/Controller/ControllerAdmin.php similarity index 100% rename from Source/Controller/ControllerAdmin.php rename to Code/Source/Controller/ControllerAdmin.php diff --git a/Source/Controller/ControllerCandidate.php b/Code/Source/Controller/ControllerCandidate.php similarity index 100% rename from Source/Controller/ControllerCandidate.php rename to Code/Source/Controller/ControllerCandidate.php diff --git a/Source/Controller/FrontController.php b/Code/Source/Controller/FrontController.php similarity index 100% rename from Source/Controller/FrontController.php rename to Code/Source/Controller/FrontController.php diff --git a/Source/Dockerfile b/Code/Source/Dockerfile similarity index 79% rename from Source/Dockerfile rename to Code/Source/Dockerfile index 432d46f..7b75ec9 100644 --- a/Source/Dockerfile +++ b/Code/Source/Dockerfile @@ -3,7 +3,7 @@ RUN apt-get update && apt-get install -y git zip COPY . /var/www/html WORKDIR /var/www/html/Config RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -RUN composer update --prefer-source ../. && composer install --prefer-source ../. +RUN composer update && composer install --prefer-source ../. WORKDIR /var/www/html RUN Config/vendor/bin/phpunit .\Tests --coverage-clover coverage.xml diff --git a/Source/Exceptions/InexistantLoginException.php b/Code/Source/Exceptions/InexistantLoginException.php similarity index 100% rename from Source/Exceptions/InexistantLoginException.php rename to Code/Source/Exceptions/InexistantLoginException.php diff --git a/Source/Exceptions/InvalidLoginOrPasswordException.php b/Code/Source/Exceptions/InvalidLoginOrPasswordException.php similarity index 100% rename from Source/Exceptions/InvalidLoginOrPasswordException.php rename to Code/Source/Exceptions/InvalidLoginOrPasswordException.php diff --git a/Source/Exceptions/InvalidUsernameOrPasswordException.php b/Code/Source/Exceptions/InvalidUsernameOrPasswordException.php similarity index 100% rename from Source/Exceptions/InvalidUsernameOrPasswordException.php rename to Code/Source/Exceptions/InvalidUsernameOrPasswordException.php diff --git a/Source/Model/Factory.php b/Code/Source/Model/Factory.php similarity index 100% rename from Source/Model/Factory.php rename to Code/Source/Model/Factory.php diff --git a/Source/Model/FactoryQuestion.php b/Code/Source/Model/FactoryQuestion.php similarity index 100% rename from Source/Model/FactoryQuestion.php rename to Code/Source/Model/FactoryQuestion.php diff --git a/Source/Model/ModelAdmin.php b/Code/Source/Model/ModelAdmin.php similarity index 100% rename from Source/Model/ModelAdmin.php rename to Code/Source/Model/ModelAdmin.php diff --git a/Source/Model/ModelCandidate.php b/Code/Source/Model/ModelCandidate.php similarity index 100% rename from Source/Model/ModelCandidate.php rename to Code/Source/Model/ModelCandidate.php diff --git a/Source/Tests/TestBusinessClass/BoxQuestionTest.php b/Code/Source/Tests/TestBusinessClass/BoxQuestionTest.php similarity index 100% rename from Source/Tests/TestBusinessClass/BoxQuestionTest.php rename to Code/Source/Tests/TestBusinessClass/BoxQuestionTest.php diff --git a/Source/Tests/TestBusinessClass/FormTest.php b/Code/Source/Tests/TestBusinessClass/FormTest.php similarity index 100% rename from Source/Tests/TestBusinessClass/FormTest.php rename to Code/Source/Tests/TestBusinessClass/FormTest.php diff --git a/Source/Tests/TestBusinessClass/IPrintQuestionStrategyTest.php b/Code/Source/Tests/TestBusinessClass/IPrintQuestionStrategyTest.php similarity index 100% rename from Source/Tests/TestBusinessClass/IPrintQuestionStrategyTest.php rename to Code/Source/Tests/TestBusinessClass/IPrintQuestionStrategyTest.php diff --git a/Source/Tests/TestBusinessClass/KeywordTest.php b/Code/Source/Tests/TestBusinessClass/KeywordTest.php similarity index 100% rename from Source/Tests/TestBusinessClass/KeywordTest.php rename to Code/Source/Tests/TestBusinessClass/KeywordTest.php diff --git a/Source/Tests/TestBusinessClass/QuestionTest.php b/Code/Source/Tests/TestBusinessClass/QuestionTest.php similarity index 100% rename from Source/Tests/TestBusinessClass/QuestionTest.php rename to Code/Source/Tests/TestBusinessClass/QuestionTest.php diff --git a/Source/Tests/TestBusinessClass/ResponseTest.php b/Code/Source/Tests/TestBusinessClass/ResponseTest.php similarity index 100% rename from Source/Tests/TestBusinessClass/ResponseTest.php rename to Code/Source/Tests/TestBusinessClass/ResponseTest.php diff --git a/Source/Tests/TestBusinessClass/TextQuestionTest.php b/Code/Source/Tests/TestBusinessClass/TextQuestionTest.php similarity index 100% rename from Source/Tests/TestBusinessClass/TextQuestionTest.php rename to Code/Source/Tests/TestBusinessClass/TextQuestionTest.php diff --git a/Source/Tests/TestConfig/AltoRouterTest.php b/Code/Source/Tests/TestConfig/AltoRouterTest.php similarity index 100% rename from Source/Tests/TestConfig/AltoRouterTest.php rename to Code/Source/Tests/TestConfig/AltoRouterTest.php diff --git a/Source/Tests/TestConfig/AutoloadTest.php b/Code/Source/Tests/TestConfig/AutoloadTest.php similarity index 100% rename from Source/Tests/TestConfig/AutoloadTest.php rename to Code/Source/Tests/TestConfig/AutoloadTest.php diff --git a/Source/Tests/TestConfig/CleanTest.php b/Code/Source/Tests/TestConfig/CleanTest.php similarity index 100% rename from Source/Tests/TestConfig/CleanTest.php rename to Code/Source/Tests/TestConfig/CleanTest.php diff --git a/Source/Tests/TestConfig/ValidateTest.php b/Code/Source/Tests/TestConfig/ValidateTest.php similarity index 100% rename from Source/Tests/TestConfig/ValidateTest.php rename to Code/Source/Tests/TestConfig/ValidateTest.php diff --git a/Source/Tests/TestException/InexistantLoginExceptionTest.php b/Code/Source/Tests/TestException/InexistantLoginExceptionTest.php similarity index 100% rename from Source/Tests/TestException/InexistantLoginExceptionTest.php rename to Code/Source/Tests/TestException/InexistantLoginExceptionTest.php diff --git a/Source/Tests/TestException/InvalidLoginOrPasswordExceptionTest.php b/Code/Source/Tests/TestException/InvalidLoginOrPasswordExceptionTest.php similarity index 100% rename from Source/Tests/TestException/InvalidLoginOrPasswordExceptionTest.php rename to Code/Source/Tests/TestException/InvalidLoginOrPasswordExceptionTest.php diff --git a/Source/Tests/TestException/InvalidUsernameOrPasswordExceptionTest.php b/Code/Source/Tests/TestException/InvalidUsernameOrPasswordExceptionTest.php similarity index 100% rename from Source/Tests/TestException/InvalidUsernameOrPasswordExceptionTest.php rename to Code/Source/Tests/TestException/InvalidUsernameOrPasswordExceptionTest.php diff --git a/Source/Tests/TestModel/.gitkeep b/Code/Source/Tests/TestModel/.gitkeep similarity index 100% rename from Source/Tests/TestModel/.gitkeep rename to Code/Source/Tests/TestModel/.gitkeep diff --git a/Source/Views/CSS/adminLogin.css b/Code/Source/Views/CSS/adminLogin.css similarity index 100% rename from Source/Views/CSS/adminLogin.css rename to Code/Source/Views/CSS/adminLogin.css diff --git a/Source/Views/CSS/base.css b/Code/Source/Views/CSS/base.css similarity index 100% rename from Source/Views/CSS/base.css rename to Code/Source/Views/CSS/base.css diff --git a/Source/Views/CSS/form.css b/Code/Source/Views/CSS/form.css similarity index 100% rename from Source/Views/CSS/form.css rename to Code/Source/Views/CSS/form.css diff --git a/Source/Views/CSS/styles.css b/Code/Source/Views/CSS/styles.css similarity index 100% rename from Source/Views/CSS/styles.css rename to Code/Source/Views/CSS/styles.css diff --git a/Source/Views/CSS/stylesForm.css b/Code/Source/Views/CSS/stylesForm.css similarity index 100% rename from Source/Views/CSS/stylesForm.css rename to Code/Source/Views/CSS/stylesForm.css diff --git a/Source/Views/HTML/admin.php b/Code/Source/Views/HTML/admin.php similarity index 100% rename from Source/Views/HTML/admin.php rename to Code/Source/Views/HTML/admin.php diff --git a/Source/Views/HTML/adminLogin.php b/Code/Source/Views/HTML/adminLogin.php similarity index 100% rename from Source/Views/HTML/adminLogin.php rename to Code/Source/Views/HTML/adminLogin.php diff --git a/Source/Views/HTML/categories.php b/Code/Source/Views/HTML/categories.php similarity index 100% rename from Source/Views/HTML/categories.php rename to Code/Source/Views/HTML/categories.php diff --git a/Source/Views/HTML/continue.php b/Code/Source/Views/HTML/continue.php similarity index 100% rename from Source/Views/HTML/continue.php rename to Code/Source/Views/HTML/continue.php diff --git a/Source/Views/HTML/error.php b/Code/Source/Views/HTML/error.php similarity index 100% rename from Source/Views/HTML/error.php rename to Code/Source/Views/HTML/error.php diff --git a/Source/Views/HTML/form.php b/Code/Source/Views/HTML/form.php similarity index 100% rename from Source/Views/HTML/form.php rename to Code/Source/Views/HTML/form.php diff --git a/Source/Views/HTML/possibleResponsesForm.php b/Code/Source/Views/HTML/possibleResponsesForm.php similarity index 100% rename from Source/Views/HTML/possibleResponsesForm.php rename to Code/Source/Views/HTML/possibleResponsesForm.php diff --git a/Source/Views/HTML/questions.php b/Code/Source/Views/HTML/questions.php similarity index 100% rename from Source/Views/HTML/questions.php rename to Code/Source/Views/HTML/questions.php diff --git a/Source/Views/HTML/responses.php b/Code/Source/Views/HTML/responses.php similarity index 100% rename from Source/Views/HTML/responses.php rename to Code/Source/Views/HTML/responses.php diff --git a/Source/Views/HTML/thanks.php b/Code/Source/Views/HTML/thanks.php similarity index 100% rename from Source/Views/HTML/thanks.php rename to Code/Source/Views/HTML/thanks.php diff --git a/Source/Views/IMAGES/background_uca.png b/Code/Source/Views/IMAGES/background_uca.png similarity index 100% rename from Source/Views/IMAGES/background_uca.png rename to Code/Source/Views/IMAGES/background_uca.png diff --git a/Source/Views/IMAGES/logoUca.png b/Code/Source/Views/IMAGES/logoUca.png similarity index 100% rename from Source/Views/IMAGES/logoUca.png rename to Code/Source/Views/IMAGES/logoUca.png diff --git a/Source/Views/JS/constant.js b/Code/Source/Views/JS/constant.js similarity index 100% rename from Source/Views/JS/constant.js rename to Code/Source/Views/JS/constant.js diff --git a/Source/Views/JS/form_category.js b/Code/Source/Views/JS/form_category.js similarity index 100% rename from Source/Views/JS/form_category.js rename to Code/Source/Views/JS/form_category.js diff --git a/Source/Views/JS/form_question.js b/Code/Source/Views/JS/form_question.js similarity index 100% rename from Source/Views/JS/form_question.js rename to Code/Source/Views/JS/form_question.js diff --git a/Source/Views/JS/getData-Ids.js b/Code/Source/Views/JS/getData-Ids.js similarity index 100% rename from Source/Views/JS/getData-Ids.js rename to Code/Source/Views/JS/getData-Ids.js diff --git a/Source/Views/JS/possibleResponses.js b/Code/Source/Views/JS/possibleResponses.js similarity index 100% rename from Source/Views/JS/possibleResponses.js rename to Code/Source/Views/JS/possibleResponses.js diff --git a/Source/Views/JS/scripts.js b/Code/Source/Views/JS/scripts.js similarity index 100% rename from Source/Views/JS/scripts.js rename to Code/Source/Views/JS/scripts.js diff --git a/Source/index.php b/Code/Source/index.php similarity index 100% rename from Source/index.php rename to Code/Source/index.php diff --git a/Source/phpunit.xml b/Code/Source/phpunit.xml similarity index 100% rename from Source/phpunit.xml rename to Code/Source/phpunit.xml diff --git a/Source/.gitignore b/Source/.gitignore deleted file mode 100644 index 5efa165..0000000 --- a/Source/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/Config/vendor/ -/.phpunit.cache/