From 83f53ecad2d8a0dfb40575e337af6713fabbc8b9 Mon Sep 17 00:00:00 2001 From: Raul Ruiz Date: Fri, 8 Jan 2016 10:30:04 -0500 Subject: [PATCH] Utilizing SharedString instead of String --- .../{StringTest.php => SharedStringTest.php} | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) rename tests/PhpWord/Shared/{StringTest.php => SharedStringTest.php} (61%) diff --git a/tests/PhpWord/Shared/StringTest.php b/tests/PhpWord/Shared/SharedStringTest.php similarity index 61% rename from tests/PhpWord/Shared/StringTest.php rename to tests/PhpWord/Shared/SharedStringTest.php index a12d52f9b9..e49dd2a26d 100644 --- a/tests/PhpWord/Shared/StringTest.php +++ b/tests/PhpWord/Shared/SharedStringTest.php @@ -23,16 +23,16 @@ * @coversDefaultClass \PhpOffice\PhpWord\Shared\String * @runTestsInSeparateProcesses */ -class StringTest extends \PHPUnit_Framework_TestCase +class SharedStringTest extends \PHPUnit_Framework_TestCase { /** * Is UTF8 */ public function testIsUTF8() { - $this->assertTrue(String::isUTF8('')); - $this->assertTrue(String::isUTF8('éééé')); - $this->assertFalse(String::isUTF8(utf8_decode('éééé'))); + $this->assertTrue(SharedString::isUTF8('')); + $this->assertTrue(SharedString::isUTF8('éééé')); + $this->assertFalse(SharedString::isUTF8(utf8_decode('éééé'))); } /** @@ -40,8 +40,8 @@ public function testIsUTF8() */ public function testControlCharacterOOXML2PHP() { - $this->assertEquals('', String::controlCharacterOOXML2PHP('')); - $this->assertEquals(chr(0x08), String::controlCharacterOOXML2PHP('_x0008_')); + $this->assertEquals('', SharedString::controlCharacterOOXML2PHP('')); + $this->assertEquals(chr(0x08), SharedString::controlCharacterOOXML2PHP('_x0008_')); } /** @@ -49,8 +49,8 @@ public function testControlCharacterOOXML2PHP() */ public function testControlCharacterPHP2OOXML() { - $this->assertEquals('', String::controlCharacterPHP2OOXML('')); - $this->assertEquals('_x0008_', String::controlCharacterPHP2OOXML(chr(0x08))); + $this->assertEquals('', SharedString::controlCharacterPHP2OOXML('')); + $this->assertEquals('_x0008_', SharedString::controlCharacterPHP2OOXML(chr(0x08))); } /** @@ -58,9 +58,9 @@ public function testControlCharacterPHP2OOXML() */ public function testToUnicode() { - $this->assertEquals('a', String::toUnicode('a')); - $this->assertEquals('\uc0{\u8364}', String::toUnicode('€')); - $this->assertEquals('\uc0{\u233}', String::toUnicode('é')); + $this->assertEquals('a', SharedString::toUnicode('a')); + $this->assertEquals('\uc0{\u8364}', SharedString::toUnicode('€')); + $this->assertEquals('\uc0{\u233}', SharedString::toUnicode('é')); } /** @@ -68,6 +68,6 @@ public function testToUnicode() */ public function testRemoveUnderscorePrefix() { - $this->assertEquals('item', String::removeUnderscorePrefix('_item')); + $this->assertEquals('item', SharedString::removeUnderscorePrefix('_item')); } }