예제 #1
0
 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");
 }
예제 #2
0
 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');
 }