public function testCountLines() { $text = new Text("This is line1\n" . "This is line2\r\n" . "This is line3"); $this->assertEquals(3, $text->countLines()); }