From a102a642461453ca6063160ed4b735857384a797 Mon Sep 17 00:00:00 2001 From: "nicolas.franco" Date: Wed, 30 Nov 2022 09:50:56 +0100 Subject: [PATCH] tests --- controller/CtrlUser.php | 5 +++-- dal/TaskGateway.php | 10 +++++++--- README.md => doc-extra/README.md | 0 .../diagrammes}/diag_classes.mdj | 0 {tests => doc-extra/tests}/credentials.php | 0 doc-extra/tests/echo.php | 3 +++ doc-extra/tests/ptest.php | 3 +++ index.php | 13 +++++++------ tests/ptest.php | 17 ----------------- 9 files changed, 23 insertions(+), 28 deletions(-) rename README.md => doc-extra/README.md (100%) rename {diagrammes => doc-extra/diagrammes}/diag_classes.mdj (100%) rename {tests => doc-extra/tests}/credentials.php (100%) create mode 100644 doc-extra/tests/echo.php create mode 100644 doc-extra/tests/ptest.php delete mode 100644 tests/ptest.php diff --git a/controller/CtrlUser.php b/controller/CtrlUser.php index e606c35..b267e90 100644 --- a/controller/CtrlUser.php +++ b/controller/CtrlUser.php @@ -1,9 +1,10 @@ con->executeQuery($query, array(':id'=> array($t->id,PDO::PARAM_STR), + ':titre'=> array($t->titre,PDO::PARAM_STR), + ':descript'=> array($t->description,PDO::PARAM_STR), + ':priotite'=> array($t->priorite,PDO::PARAM_STR))); } - public function update(Task $t){ + public function update($id_task){ // update a task } - public function delete(Task $t){ + public function delete($id_task){ // delete a task } diff --git a/README.md b/doc-extra/README.md similarity index 100% rename from README.md rename to doc-extra/README.md diff --git a/diagrammes/diag_classes.mdj b/doc-extra/diagrammes/diag_classes.mdj similarity index 100% rename from diagrammes/diag_classes.mdj rename to doc-extra/diagrammes/diag_classes.mdj diff --git a/tests/credentials.php b/doc-extra/tests/credentials.php similarity index 100% rename from tests/credentials.php rename to doc-extra/tests/credentials.php diff --git a/doc-extra/tests/echo.php b/doc-extra/tests/echo.php new file mode 100644 index 0000000..20870ef --- /dev/null +++ b/doc-extra/tests/echo.php @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/doc-extra/tests/ptest.php b/doc-extra/tests/ptest.php new file mode 100644 index 0000000..4c760cf --- /dev/null +++ b/doc-extra/tests/ptest.php @@ -0,0 +1,3 @@ +2do test"; +?> diff --git a/index.php b/index.php index 1434728..3996940 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,8 @@ \ No newline at end of file +# $fc = new FrontCtrl(); +# $TMessage = array(); +# +# require_once(controller/FrontCtrl.php); +# require(erreur.php); +echo "

2do index

"; +?> diff --git a/tests/ptest.php b/tests/ptest.php deleted file mode 100644 index 538daf2..0000000 --- a/tests/ptest.php +++ /dev/null @@ -1,17 +0,0 @@ -executeQuery($query,array( - ':prio'=>array($prio,PDO::PARAM_STR))); - -$results=$con->getResults(); -foreach($results as $row) - echo $row['id']; - -echo "
its all good!"; -?>