mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-08 21:05:37 +00:00
Add PHPUnit attributes alongside annotations to silence doc-comment metadata deprecations on PHPUnit 11
This commit is contained in:
@@ -20,6 +20,7 @@ namespace Twig\Tests\Cache;
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Twig\Cache\ReadOnlyFilesystemCache;
|
||||
use Twig\Tests\FilesystemHelper;
|
||||
@@ -112,6 +113,7 @@ class ReadOnlyFilesystemTest extends TestCase
|
||||
*
|
||||
* @dataProvider provideDirectories
|
||||
*/
|
||||
#[DataProvider('provideDirectories')]
|
||||
public function testGenerateKey($expected, $input)
|
||||
{
|
||||
$cache = new ReadOnlyFilesystemCache($input);
|
||||
|
||||
Reference in New Issue
Block a user