public function testCanAssertAStringEndsWith()
 {
     $this->assertTrue(Strings::endsWith('foobar', 'bar'));
     $this->assertFalse(Strings::endsWith('barfoo', 'bar'));
 }
示例#2
0
文件: Test.php 项目: phpassert/core
function isValidTestName(\string $name)
{
    $name = strtolower($name);
    return Strings::startsWith($name, 'test') || Strings::endsWith($name, 'test');
}