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"); }
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'); }