public function testEndsWith() { $this->assertTrue(FajrUtils::endsWith('foobar', 'bar'), 'foobar ends with bar'); $this->assertTrue(FajrUtils::endsWith('foobar', ''), 'foobar ends with empty string'); $this->assertTrue(FajrUtils::endsWith('', ''), 'empty string ends with empty string'); $this->assertFalse(FajrUtils::endsWith('foobar', 'baz'), 'foobar does not end with baz'); $this->assertFalse(FajrUtils::endsWith('foobar', 'foo'), 'foobar does not end with foo'); $this->assertFalse(FajrUtils::endsWith('foobar', 'xfoobar'), 'foobar does not end with xfoobar'); }