From b1915b6f256b64c45d325e86f9464009909099d5 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Sun, 4 May 2008 12:49:20 +0000 Subject: [PATCH] expectation goes first git-svn-id: file:///svn/phpbb/trunk@8540 89ea8834-ac86-4346-8a33-228a782c2dd0 --- tests/utf/utf8_wordwrap_test.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/utf/utf8_wordwrap_test.php b/tests/utf/utf8_wordwrap_test.php index 5a5417a0b0..7015f5252c 100644 --- a/tests/utf/utf8_wordwrap_test.php +++ b/tests/utf/utf8_wordwrap_test.php @@ -14,21 +14,21 @@ class phpbb_utf_utf8_wordwrap_test extends PHPUnit_Framework_TestCase $php_wordwrap = wordwrap($text, 20); $phpbb_utf8_wordwrap = utf8_wordwrap($text, 20); - $this->assertEquals($phpbb_utf8_wordwrap, $php_wordwrap, "Checking ASCII standard behaviour with length 20"); + $this->assertEquals($php_wordwrap, $phpbb_utf8_wordwrap, "Checking ASCII standard behaviour with length 20"); $php_wordwrap = wordwrap($text, 30, "
\n"); $phpbb_utf8_wordwrap = utf8_wordwrap($text, 30, "
\n"); - $this->assertEquals($phpbb_utf8_wordwrap, $php_wordwrap, "Checking ASCII special break string with length 30"); + $this->assertEquals($php_wordwrap, $phpbb_utf8_wordwrap, "Checking ASCII special break string with length 30"); $text = 'A very long woooooooooooord.'; $php_wordwrap = wordwrap($text, 8, "\n"); $phpbb_utf8_wordwrap = utf8_wordwrap($text, 8, "\n"); - $this->assertEquals($phpbb_utf8_wordwrap, $php_wordwrap, 'Checking ASCII not cutting long words'); + $this->assertEquals($php_wordwrap, $phpbb_utf8_wordwrap, 'Checking ASCII not cutting long words'); $php_wordwrap = wordwrap($text, 8, "\n", true); $phpbb_utf8_wordwrap = utf8_wordwrap($text, 8, "\n", true); - $this->assertEquals($phpbb_utf8_wordwrap, $php_wordwrap, 'Checking ASCII cutting long words'); + $this->assertEquals($php_wordwrap, $phpbb_utf8_wordwrap, 'Checking ASCII cutting long words'); } /** @@ -62,7 +62,7 @@ class phpbb_utf_utf8_wordwrap_test extends PHPUnit_Framework_TestCase $expected = $this->turn_into_greek(wordwrap($text, 10)); $phpbb_utf8_wordwrap = utf8_wordwrap($greek, 10); - $this->assertEquals($phpbb_utf8_wordwrap, $expected, 'Checking UTF-8 standard behaviour with length 10'); + $this->assertEquals($expected, $phpbb_utf8_wordwrap, 'Checking UTF-8 standard behaviour with length 10'); } public function test_utf8_wordwrap_utf8_cut() @@ -72,7 +72,7 @@ class phpbb_utf_utf8_wordwrap_test extends PHPUnit_Framework_TestCase $expected = $this->turn_into_greek(wordwrap($text, 5, "\n", true)); $phpbb_utf8_wordwrap = utf8_wordwrap($greek, 5, "\n", true); - $this->assertEquals($phpbb_utf8_wordwrap, $expected, 'Checking UTF-8 cutting long words'); + $this->assertEquals($expected, $phpbb_utf8_wordwrap, 'Checking UTF-8 cutting long words'); } } ?> \ No newline at end of file