From 92a71536b788ad5405fc2d21b7c3be987f990293 Mon Sep 17 00:00:00 2001
From: pbarroca <pbarroca@afi-sa.fr>
Date: Wed, 4 May 2016 11:32:11 +0200
Subject: [PATCH] rel #39778 : display htmls to diagnose test failure

---
 tests/library/ZendAfi/View/Helper/Accueil/SitoTest.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/library/ZendAfi/View/Helper/Accueil/SitoTest.php b/tests/library/ZendAfi/View/Helper/Accueil/SitoTest.php
index 321c19024e3..98b871d51f8 100644
--- a/tests/library/ZendAfi/View/Helper/Accueil/SitoTest.php
+++ b/tests/library/ZendAfi/View/Helper/Accueil/SitoTest.php
@@ -245,13 +245,14 @@ class SitoViewHelperSelectItemsByRandomOrderTest extends SitoViewHelperTestCase
     for($i=0; $i < 10; $i++)
       $htmls[] = $this->_helper->getBoite();
 
-    $this->assertEquals(2, count(array_unique($htmls)));
+    $this->assertEquals(2, count(array_unique($htmls)), json_encode($htmls));
   }
 
 
   /** @test */
   public function pageShouldNotContainsLinkToReloadModule() {
-    $this->assertNotXPath($this->html, '//a[contains(@href, "sito/widget-page/id_module/2/id_division/1")]');
+    $this->assertNotXPath($this->html,
+                          '//a[contains(@href, "sito/widget-page/id_module/2/id_division/1")]');
   }
 }
 
-- 
GitLab