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