mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-03 05:56:43 +00:00
Fix tests that don't perform assertions
This commit is contained in:
@@ -475,7 +475,7 @@ class ExpressionParserTest extends TestCase
|
|||||||
$parser = new Parser($env);
|
$parser = new Parser($env);
|
||||||
|
|
||||||
$parser->parse($env->tokenize(new Source('{{ foo() }}', 'index')));
|
$parser->parse($env->tokenize(new Source('{{ foo() }}', 'index')));
|
||||||
$this->doesNotPerformAssertions();
|
$this->expectNotToPerformAssertions();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testNotReadyFilterWithNoConstructor()
|
public function testNotReadyFilterWithNoConstructor()
|
||||||
@@ -485,7 +485,7 @@ class ExpressionParserTest extends TestCase
|
|||||||
$parser = new Parser($env);
|
$parser = new Parser($env);
|
||||||
|
|
||||||
$parser->parse($env->tokenize(new Source('{{ 1|foo }}', 'index')));
|
$parser->parse($env->tokenize(new Source('{{ 1|foo }}', 'index')));
|
||||||
$this->doesNotPerformAssertions();
|
$this->expectNotToPerformAssertions();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testNotReadyTestWithNoConstructor()
|
public function testNotReadyTestWithNoConstructor()
|
||||||
@@ -495,7 +495,7 @@ class ExpressionParserTest extends TestCase
|
|||||||
$parser = new Parser($env);
|
$parser = new Parser($env);
|
||||||
|
|
||||||
$parser->parse($env->tokenize(new Source('{{ 1 is foo }}', 'index')));
|
$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 = new Parser($env);
|
||||||
|
|
||||||
$parser->parse($env->tokenize(new Source('{{ foo() }}', 'index')));
|
$parser->parse($env->tokenize(new Source('{{ foo() }}', 'index')));
|
||||||
$this->doesNotPerformAssertions();
|
$this->expectNotToPerformAssertions();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testReadyFilter()
|
public function testReadyFilter()
|
||||||
@@ -560,7 +560,7 @@ class ExpressionParserTest extends TestCase
|
|||||||
$parser = new Parser($env);
|
$parser = new Parser($env);
|
||||||
|
|
||||||
$parser->parse($env->tokenize(new Source('{{ 1|foo }}', 'index')));
|
$parser->parse($env->tokenize(new Source('{{ 1|foo }}', 'index')));
|
||||||
$this->doesNotPerformAssertions();
|
$this->expectNotToPerformAssertions();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testReadyTest()
|
public function testReadyTest()
|
||||||
@@ -570,7 +570,7 @@ class ExpressionParserTest extends TestCase
|
|||||||
$parser = new Parser($env);
|
$parser = new Parser($env);
|
||||||
|
|
||||||
$parser->parse($env->tokenize(new Source('{{ 1 is foo }}', 'index')));
|
$parser->parse($env->tokenize(new Source('{{ 1 is foo }}', 'index')));
|
||||||
$this->doesNotPerformAssertions();
|
$this->expectNotToPerformAssertions();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testTwoWordTestPrecedence()
|
public function testTwoWordTestPrecedence()
|
||||||
@@ -581,7 +581,7 @@ class ExpressionParserTest extends TestCase
|
|||||||
$parser = new Parser($env);
|
$parser = new Parser($env);
|
||||||
|
|
||||||
$parser->parse($env->tokenize(new Source('{{ 1 is empty element }}', 'index')));
|
$parser->parse($env->tokenize(new Source('{{ 1 is empty element }}', 'index')));
|
||||||
$this->doesNotPerformAssertions();
|
$this->expectNotToPerformAssertions();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function createNameExpression(string $name, array $attributes): NameExpression
|
private static function createNameExpression(string $name, array $attributes): NameExpression
|
||||||
|
|||||||
Reference in New Issue
Block a user