From e4e2e1ab51537da213ebcb19be8d0f891fc107f1 Mon Sep 17 00:00:00 2001
From: Bram Goffings <bramgoffings@gmail.com>
Date: Sun, 20 May 2012 19:32:05 +0200
Subject: [PATCH] dblog tests to psr-0

---
 core/modules/dblog/dblog.info                      |    1 -
 .../Drupal/dblog/Tests/DBLogTest.php}              |    9 +++++----
 2 files changed, 5 insertions(+), 5 deletions(-)
 rename core/modules/dblog/{dblog.test => lib/Drupal/dblog/Tests/DBLogTest.php} (99%)

diff --git a/core/modules/dblog/dblog.info b/core/modules/dblog/dblog.info
index 50e76d5..fd18bb3 100644
--- a/core/modules/dblog/dblog.info
+++ b/core/modules/dblog/dblog.info
@@ -3,4 +3,3 @@ description = Logs and records system events to the database.
 package = Core
 version = VERSION
 core = 8.x
-files[] = dblog.test
diff --git a/core/modules/dblog/dblog.test b/core/modules/dblog/lib/Drupal/dblog/Tests/DBLogTest.php
similarity index 99%
rename from core/modules/dblog/dblog.test
rename to core/modules/dblog/lib/Drupal/dblog/Tests/DBLogTest.php
index 92763c1..ce02b0a 100644
--- a/core/modules/dblog/dblog.test
+++ b/core/modules/dblog/lib/Drupal/dblog/Tests/DBLogTest.php
@@ -2,13 +2,15 @@
 
 /**
  * @file
- * Tests for dblog.module.
+ * Definition of Drupal\dblog\Tests\DBLogTest.
  */
 
+namespace Drupal\dblog\Tests;
 
 use Drupal\simpletest\WebTestBase;
+use SimpleXMLElement;
 
-class DBLogTestCase extends WebTestBase {
+class DBLogTest extends WebTestBase {
   protected $profile = 'standard';
 
   protected $big_user;
@@ -477,7 +479,7 @@ class DBLogTestCase extends WebTestBase {
       $count = $this->getTypeCount($types);
       $this->assertEqual(array_sum($count), $type['count'], 'Count matched');
     }
-    
+
     // Clear all logs and make sure the confirmation message is found.
     $this->drupalPost('admin/reports/dblog', array(), t('Clear log messages'));
     $this->assertText(t('Database log cleared.'), t('Confirmation message found'));
@@ -592,4 +594,3 @@ class DBLogTestCase extends WebTestBase {
     $this->assertLink(html_entity_decode($message_text), 0, $message);
   }
 }
-
-- 
1.7.4.msysgit.0

