mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-18 05:16:30 +00:00
Remove usage of @dataProvider
This commit is contained in:
@@ -100,8 +100,6 @@ abstract class IntegrationTestCase extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider getTests
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
#[DataProvider('getTests')]
|
||||
@@ -111,8 +109,6 @@ abstract class IntegrationTestCase extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider getLegacyTests
|
||||
*
|
||||
* @group legacy
|
||||
*
|
||||
* @return void
|
||||
|
||||
@@ -36,8 +36,6 @@ abstract class NodeTestCase extends TestCase
|
||||
abstract public static function provideTests(): iterable;
|
||||
|
||||
/**
|
||||
* @dataProvider provideTests
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
#[DataProvider('provideTests')]
|
||||
|
||||
+1
-3
@@ -258,9 +258,7 @@ EOHTML,
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider getErrorWithoutLineAndContextData
|
||||
*/
|
||||
#[DataProvider('getErrorWithoutLineAndContextData')]
|
||||
public function testErrorWithoutLineAndContext(LoaderInterface $loader, bool $debug, bool $addDebugInfo, bool $exceptionWithLineAndContext, int $errorLine)
|
||||
{
|
||||
$twig = new Environment($loader, ['debug' => $debug, 'cache' => false]);
|
||||
|
||||
@@ -468,9 +468,7 @@ class ExpressionParserTest extends TestCase
|
||||
$this->expectNotToPerformAssertions();
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider getBindingPowerTests
|
||||
*/
|
||||
#[DataProvider('getBindingPowerTests')]
|
||||
public function testBindingPower(string $expression, string $expectedExpression, mixed $expectedResult, array $context = [])
|
||||
{
|
||||
$env = new Environment(new ArrayLoader([
|
||||
|
||||
+2
-6
@@ -563,9 +563,7 @@ bar
|
||||
#}'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider getTemplateForUnclosedBracketInExpression
|
||||
*/
|
||||
#[DataProvider('getTemplateForUnclosedBracketInExpression')]
|
||||
public function testUnclosedBracketInExpression(string $template, string $bracket)
|
||||
{
|
||||
$lexer = new Lexer(new Environment(new ArrayLoader()));
|
||||
@@ -584,9 +582,7 @@ bar
|
||||
yield ['{{ (([1]) + 3 }}', '('];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider getTemplateForUnexpectedBracketInExpression
|
||||
*/
|
||||
#[DataProvider('getTemplateForUnexpectedBracketInExpression')]
|
||||
public function testUnexpectedBracketInExpression(string $template, string $bracket)
|
||||
{
|
||||
$lexer = new Lexer(new Environment(new ArrayLoader()));
|
||||
|
||||
Reference in New Issue
Block a user