Fix tests that don't perform assertions

This commit is contained in:
Alexander M. Turek
2024-09-03 22:51:23 +02:00
parent 722a5fb027
commit db22abfadf
+7 -7
View File
@@ -475,7 +475,7 @@ class ExpressionParserTest extends TestCase
$parser = new Parser($env);
$parser->parse($env->tokenize(new Source('{{ foo() }}', 'index')));
$this->doesNotPerformAssertions();
$this->expectNotToPerformAssertions();
}
public function testNotReadyFilterWithNoConstructor()
@@ -485,7 +485,7 @@ class ExpressionParserTest extends TestCase
$parser = new Parser($env);
$parser->parse($env->tokenize(new Source('{{ 1|foo }}', 'index')));
$this->doesNotPerformAssertions();
$this->expectNotToPerformAssertions();
}
public function testNotReadyTestWithNoConstructor()
@@ -495,7 +495,7 @@ class ExpressionParserTest extends TestCase
$parser = new Parser($env);
$parser->parse($env->tokenize(new Source('{{ 1 is foo }}', 'index')));
$this->doesNotPerformAssertions();
$this->expectNotToPerformAssertions();
}
/**
@@ -550,7 +550,7 @@ class ExpressionParserTest extends TestCase
$parser = new Parser($env);
$parser->parse($env->tokenize(new Source('{{ foo() }}', 'index')));
$this->doesNotPerformAssertions();
$this->expectNotToPerformAssertions();
}
public function testReadyFilter()
@@ -560,7 +560,7 @@ class ExpressionParserTest extends TestCase
$parser = new Parser($env);
$parser->parse($env->tokenize(new Source('{{ 1|foo }}', 'index')));
$this->doesNotPerformAssertions();
$this->expectNotToPerformAssertions();
}
public function testReadyTest()
@@ -570,7 +570,7 @@ class ExpressionParserTest extends TestCase
$parser = new Parser($env);
$parser->parse($env->tokenize(new Source('{{ 1 is foo }}', 'index')));
$this->doesNotPerformAssertions();
$this->expectNotToPerformAssertions();
}
public function testTwoWordTestPrecedence()
@@ -581,7 +581,7 @@ class ExpressionParserTest extends TestCase
$parser = new Parser($env);
$parser->parse($env->tokenize(new Source('{{ 1 is empty element }}', 'index')));
$this->doesNotPerformAssertions();
$this->expectNotToPerformAssertions();
}
private static function createNameExpression(string $name, array $attributes): NameExpression