77use WMDE \VueJsTemplating \FilterExpressionParsing \ParseResult ;
88use WMDE \VueJsTemplating \JsParsing \BasicJsExpressionParser ;
99
10+ /**
11+ * @covers \WMDE\VueJsTemplating\FilterExpressionParsing\ParseResult
12+ */
1013class ParseResultTest extends TestCase {
1114
1215 private $ defaultFilters ;
1316
14- protected function setUp () {
17+ protected function setUp (): void {
1518 $ this ->defaultFilters = [
1619 'duplicate ' => function ( $ str ) {
1720 return $ str . $ str ;
@@ -28,10 +31,7 @@ protected function setUp() {
2831 parent ::setUp ();
2932 }
3033
31- /**
32- * @test
33- */
34- public function toExpression_SingleExpressionWithoutFilters_CreatesThisExpression () {
34+ public function testToExpression_SingleExpressionWithoutFilters_CreatesThisExpression () {
3535 $ expressionParser = new BasicJsExpressionParser ();
3636 $ parseResult = new ParseResult ( [ "'a' " ], [] );
3737
@@ -40,10 +40,7 @@ public function toExpression_SingleExpressionWithoutFilters_CreatesThisExpressio
4040 $ this ->assertEquals ( 'a ' , $ result );
4141 }
4242
43- /**
44- * @test
45- */
46- public function toExpression_SingleExpressionWithFilter_CreatesThisExpression () {
43+ public function testToExpression_SingleExpressionWithFilter_CreatesThisExpression () {
4744 $ expressionParser = new BasicJsExpressionParser ();
4845 $ parseResult = new ParseResult ( [ "'a' " ], [ new FilterCall ( 'duplicate ' , [] ) ] );
4946
@@ -52,10 +49,7 @@ public function toExpression_SingleExpressionWithFilter_CreatesThisExpression()
5249 $ this ->assertEquals ( 'aa ' , $ result );
5350 }
5451
55- /**
56- * @test
57- */
58- public function toExpression_SingleExpressionWithTwoFilters_CreatesThisExpression () {
52+ public function testToExpression_SingleExpressionWithTwoFilters_CreatesThisExpression () {
5953 $ expressionParser = new BasicJsExpressionParser ();
6054 $ parseResult = new ParseResult (
6155 [ "'a' " ],
@@ -70,10 +64,7 @@ public function toExpression_SingleExpressionWithTwoFilters_CreatesThisExpressio
7064 $ this ->assertEquals ( 'aaaa ' , $ result );
7165 }
7266
73- /**
74- * @test
75- */
76- public function toExpression_SingleExpressionWithFiltersHavingArguments_CreatesThisExpression () {
67+ public function testToExpression_SingleExpressionWithFiltersHavingArgs_CreatesThisExpression () {
7768 $ expressionParser = new BasicJsExpressionParser ();
7869 $ parseResult = new ParseResult (
7970 [ "'a' " ],
@@ -88,10 +79,7 @@ public function toExpression_SingleExpressionWithFiltersHavingArguments_CreatesT
8879 $ this ->assertEquals ( 'abc ' , $ result );
8980 }
9081
91- /**
92- * @test
93- */
94- public function toExpression_TwoExpressionWithFilter_CreatesThisExpression () {
82+ public function testToExpression_TwoExpressionWithFilter_CreatesThisExpression () {
9583 $ expressionParser = new BasicJsExpressionParser ();
9684 $ parseResult = new ParseResult (
9785 [ "'a' " , "'b' " ],
0 commit comments