public function testLtrim() { $t = new \Test\Strings(); $this->assertTrue($t->testLtrim(" hello ") == "hello "); $this->assertTrue($t->testLtrim("hello ") == "hello "); $this->assertTrue($t->testLtrim(" hello") == "hello"); $this->assertTrue($t->testLtrim2Params('Hello World', "Hdle") == "o World"); }
public function testLtrim() { $t = new \Test\Strings(); $this->assertSame($t->testLtrim(' hello '), 'hello '); $this->assertSame($t->testLtrim('hello '), 'hello '); $this->assertSame($t->testLtrim(' hello'), 'hello'); $this->assertSame($t->testLtrim2Params('Hello World', 'Hdle'), 'o World'); }