public function testCanAssertAStringEndsWith() { $this->assertTrue(Strings::endsWith('foobar', 'bar')); $this->assertFalse(Strings::endsWith('barfoo', 'bar')); }
function isValidTestName(\string $name) { $name = strtolower($name); return Strings::startsWith($name, 'test') || Strings::endsWith($name, 'test'); }