From 0051a73a266e694d6d8b0d2be7d92513322967f8 Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Thu, 5 Mar 2015 19:18:24 +0100 Subject: [PATCH] Good test doc + more effective test --- Tests/Entity/PersonTest.php | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/Tests/Entity/PersonTest.php b/Tests/Entity/PersonTest.php index 0975d547b..64ccd9a4f 100644 --- a/Tests/Entity/PersonTest.php +++ b/Tests/Entity/PersonTest.php @@ -81,13 +81,6 @@ class PersonTest extends \PHPUnit_Framework_TestCase } /** - * TODO : choose the good doc - * - * Test if the getAccompanyingPeriodsOrdered function do not change the - * order of two periods starting at the same moment - * - * or - * * Test if the getAccompanyingPeriodsOrdered function, for periods * starting at the same time order regarding to the closing date. * @@ -96,15 +89,15 @@ class PersonTest extends \PHPUnit_Framework_TestCase $d = new \DateTime("2013/2/1"); $p = new Person($d); - $e = new \DateTime("2013/3/1"); - $period = $p->getCurrentAccompanyingPeriod()->setDateClosing($e); + $g = new \DateTime("2013/4/1"); + $period = $p->getCurrentAccompanyingPeriod()->setDateClosing($g); $p->close($period); $f = new \DateTime("2013/2/1"); $p->open(new AccompanyingPeriod($f)); - $g = new \DateTime("2013/4/1"); - $period = $p->getCurrentAccompanyingPeriod()->setDateClosing($g); + $e = new \DateTime("2013/3/1"); + $period = $p->getCurrentAccompanyingPeriod()->setDateClosing($e); $p->close($period); $r = $p->getAccompanyingPeriodsOrdered();