. */ use PHPUnit_Framework_TestCase; /** * Unit tests for the global functions in the file includes/functions/functions_rtl.php */ class FunctionsRtlTest extends PHPUnit_Framework_TestCase { /** * Prepare the environment for these tests */ public function setUp() { } /** * Test that function stripLRMRLM() exists in the correct namespace. */ public function testFunctionStripLRMRLMExists() { $this->assertEquals(function_exists(__NAMESPACE__ . '\\stripLRMRLM'), true); } /** * Test that function spanLTRRTL() exists in the correct namespace. */ public function testFunctionSpanLTRRTLExists() { $this->assertEquals(function_exists(__NAMESPACE__ . '\\spanLTRRTL'), true); } /** * Test that function starredName() exists in the correct namespace. */ public function testFunctionStarredNameExists() { $this->assertEquals(function_exists(__NAMESPACE__ . '\\starredName'), true); } /** * Test that function getChar() exists in the correct namespace. */ public function testFunctionGetCharExists() { $this->assertEquals(function_exists(__NAMESPACE__ . '\\getChar'), true); } /** * Test that function breakCurrentSpan() exists in the correct namespace. */ public function testFunctionBreakCurrentSpanExists() { $this->assertEquals(function_exists(__NAMESPACE__ . '\\breakCurrentSpan'), true); } /** * Test that function beginCurrentSpan() exists in the correct namespace. */ public function testFunctionBeginCurrentSpanExists() { $this->assertEquals(function_exists(__NAMESPACE__ . '\\beginCurrentSpan'), true); } /** * Test that function finishCurrentSpan() exists in the correct namespace. */ public function testFunctionFinishCurrentSpanExists() { $this->assertEquals(function_exists(__NAMESPACE__ . '\\finishCurrentSpan'), true); } /** * Test that function utf8_wordwrap() exists in the correct namespace. */ public function testFunctionUtf8WordwrapExists() { $this->assertEquals(function_exists(__NAMESPACE__ . '\\utf8_wordwrap'), true); } }