From ae84e25209e9d09fc41490a41eab1faa148d565b Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Wed, 23 Oct 2013 11:42:11 -0700
Subject: [PATCH] Issue #2108643 by ParisLiakos: Fixed AttributeTest fails when
 using debian's phpunit binary.

---
 .../Drupal/Tests/Core/Template/AttributeTest.php      | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/core/tests/Drupal/Tests/Core/Template/AttributeTest.php b/core/tests/Drupal/Tests/Core/Template/AttributeTest.php
index aea4d64565c5..af5e33298754 100644
--- a/core/tests/Drupal/Tests/Core/Template/AttributeTest.php
+++ b/core/tests/Drupal/Tests/Core/Template/AttributeTest.php
@@ -92,12 +92,13 @@ public function testIterate() {
   public function testPrint() {
     $attribute = new Attribute(array('class' => array('example-class'), 'id' => 'example-id', 'enabled' => TRUE));
 
-    $html = '<div' . (string) $attribute . '></div>';
-    $this->assertSelectEquals('div.example-class', '', 1, $html);
-    $this->assertSelectEquals('div.example-class2', '', 0, $html);
+    $content = $this->randomName();
+    $html = '<div' . (string) $attribute . '>' . $content . '</div>';
+    $this->assertSelectEquals('div.example-class', $content, 1, $html);
+    $this->assertSelectEquals('div.example-class2', $content, 0, $html);
 
-    $this->assertSelectEquals('div#example-id', '', 1, $html);
-    $this->assertSelectEquals('div#example-id2', '', 0, $html);
+    $this->assertSelectEquals('div#example-id', $content, 1, $html);
+    $this->assertSelectEquals('div#example-id2', $content, 0, $html);
 
     $this->assertTrue(strpos($html, 'enabled') !== FALSE);
   }
-- 
GitLab