public function testSubstring() { $text = new Text('This is a test'); $this->assertEquals('test', (string) $text->substring(10)); $this->assertEquals('This is', (string) $text->substring(0, 7)); }
public function testSubstring() { $text = new Text('This is a test'); $this->assertEquals('test', (string) $text->substring(10)); $this->assertEquals('This is', (string) $text->substring(0, 7)); }