mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-09 13:25:41 +00:00
Add PHPUnit attributes alongside annotations to silence doc-comment metadata deprecations on PHPUnit 11
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
namespace Twig\Tests\TokenParser;
|
||||
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Twig\Environment;
|
||||
use Twig\Loader\ArrayLoader;
|
||||
@@ -20,6 +21,7 @@ use Twig\Source;
|
||||
class TypesTokenParserTest extends TestCase
|
||||
{
|
||||
/** @dataProvider getMappingTests */
|
||||
#[DataProvider('getMappingTests')]
|
||||
public function testMappingParsing(string $template, array $expected): void
|
||||
{
|
||||
$env = new Environment(new ArrayLoader(), ['cache' => false, 'autoescape' => false]);
|
||||
|
||||
Reference in New Issue
Block a user