public function testEndsWith() { $text = new Text('This is a test'); $aTest = new Text('a test'); $isA = new Text('is a'); $this->assertTrue($text->endsWith($aTest)); $this->assertFalse($text->endsWith($isA)); }