From 5f72019a66c5c675060b2007dfb8d2357f0632bf Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Sat, 19 Oct 2013 13:02:43 +0530 Subject: [PATCH] Fix failing tests --- .../transformations/Text_Plain_Sql_test.php | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/test/classes/plugin/transformations/Text_Plain_Sql_test.php b/test/classes/plugin/transformations/Text_Plain_Sql_test.php index c1d0903157..30b7d62e3a 100644 --- a/test/classes/plugin/transformations/Text_Plain_Sql_test.php +++ b/test/classes/plugin/transformations/Text_Plain_Sql_test.php @@ -34,7 +34,7 @@ class Text_Plain_Sql_Test extends PHPUnit_Framework_TestCase */ protected function setUp() { - $this->object = new Text_Plain_Sql(new PluginManager()); + $this->object = new Text_Plain_Sql(new PluginManager()); } /** @@ -48,7 +48,7 @@ class Text_Plain_Sql_Test extends PHPUnit_Framework_TestCase { unset($this->object); } - + /** * Test for getInfo * @@ -58,12 +58,12 @@ class Text_Plain_Sql_Test extends PHPUnit_Framework_TestCase */ public function testGetInfo() { - $info = 'Formats text as SQL query with syntax highlighting.'; + $info = 'Formats text as SQL query with syntax highlighting.'; $this->assertEquals( $info, Text_Plain_Sql::getInfo() - ); - + ); + } /** @@ -74,11 +74,11 @@ class Text_Plain_Sql_Test extends PHPUnit_Framework_TestCase * @group medium */ public function testGetName() - { + { $this->assertEquals( "SQL", Text_Plain_Sql::getName() - ); + ); } /** @@ -89,11 +89,11 @@ class Text_Plain_Sql_Test extends PHPUnit_Framework_TestCase * @group medium */ public function testGetMIMEType() - { + { $this->assertEquals( "Text", Text_Plain_Sql::getMIMEType() - ); + ); } /** @@ -104,11 +104,11 @@ class Text_Plain_Sql_Test extends PHPUnit_Framework_TestCase * @group medium */ public function testGetMIMESubtype() - { + { $this->assertEquals( "Plain", Text_Plain_Sql::getMIMESubtype() - ); + ); } /** @@ -122,10 +122,12 @@ class Text_Plain_Sql_Test extends PHPUnit_Framework_TestCase { $buffer = "select *"; $options = array("option1", "option2"); - $result = '
select *
'; + $result = '
' . "\n"
+            . 'select *' . "\n"
+            . '
'; $this->assertEquals( $result, $this->object->applyTransformation($buffer, $options) - ); + ); } }