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