Exemplo n.º 1
0
 public function testIsEmpty()
 {
     $str1 = new Str("");
     $str2 = new Str("Hello, world.");
     $str3 = new Str();
     $this->assertTrue($str1->isEmpty());
     $this->assertFalse($str2->isEmpty());
     $this->assertTrue($str3->isEmpty());
 }