예제 #1
0
 public function testRtrim()
 {
     $t = new \Test\Strings();
     $this->assertTrue($t->testRtrim(" hello ") == " hello");
     $this->assertTrue($t->testRtrim("hello ") == "hello");
     $this->assertTrue($t->testRtrim(" hello") == " hello");
     $this->assertTrue($t->testRtrim2Params('Hello World', "Hdle") == "Hello Wor");
 }
예제 #2
0
 public function testRtrim()
 {
     $t = new \Test\Strings();
     $this->assertSame($t->testRtrim(' hello '), ' hello');
     $this->assertSame($t->testRtrim('hello '), 'hello');
     $this->assertSame($t->testRtrim(' hello'), ' hello');
     $this->assertSame($t->testRtrim2Params('Hello World', 'Hdle'), 'Hello Wor');
 }