示例#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');
 }