From 07c95a1b3e536756d393dc55b38f1cb00c20cf03 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 22 Mar 2019 13:20:10 +0000 Subject: [PATCH] XDiff tests : manage the time second change git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5163 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- Tests/xdiffTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tests/xdiffTest.php b/Tests/xdiffTest.php index c1efc7f..9e61f0b 100644 --- a/Tests/xdiffTest.php +++ b/Tests/xdiffTest.php @@ -180,8 +180,9 @@ to this document. // Mode unified $xdiff = new xdiff ("unified"); $res = $xdiff->diff ($this->string1, $this->string2); - $this->assertSame ($res, "--- Original ".date ("Y-m-d H:i:s.u000 O")." -+++ New ".date ("Y-m-d H:i:s.u001 O")." + $date = date ("Y-m-d H:i:s.u00"); + $this->assertSame ($res, "--- Original ${date}0 +0100 ++++ New ${date}1 +0100 @@ -0,0 +1,6 @@ +This is an important +notice! It should