@beforeClass
public static final function checkDataProvider() : void { $r = new \ReflectionMethod(static::class, 'getTests'); if (self::class !== $r->getDeclaringClass() ->getName()) { trigger_deprecation('twig/twig', '3.13', 'Implementing "%s::getTests()" in "%s" is deprecated, implement "provideTests()" instead.', self::class, static::class); } }