|
11 | 11 |
|
12 | 12 | namespace Symfony\Bundle\FrameworkBundle\Tests\Templating;
|
13 | 13 |
|
14 |
| -use Symfony\Bridge\PhpUnit\ErrorAssert; |
15 | 14 | use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
|
16 | 15 | use Symfony\Bundle\FrameworkBundle\Templating\TemplateNameParser;
|
17 | 16 | use Symfony\Bundle\FrameworkBundle\Templating\TemplateReference;
|
@@ -86,17 +85,15 @@ public function testParseValidNameWithNotFoundBundle()
|
86 | 85 | /**
|
87 | 86 | * @group legacy
|
88 | 87 | * @dataProvider provideAbsolutePaths
|
89 |
| - * @requires function Symfony\Bridge\PhpUnit\ErrorAssert::assertDeprecationsAreTriggered |
| 88 | + * @expectedDeprecation Absolute template path support is deprecated since Symfony 3.1 and will be removed in 4.0. |
90 | 89 | */
|
91 | 90 | public function testAbsolutePathsAreDeprecated($name, $logicalName, $path, $ref)
|
92 | 91 | {
|
93 |
| - ErrorAssert::assertDeprecationsAreTriggered('Absolute template path support is deprecated since Symfony 3.1 and will be removed in 4.0.', function () use ($name, $logicalName, $path, $ref) { |
94 |
| - $template = $this->parser->parse($name); |
| 92 | + $template = $this->parser->parse($name); |
95 | 93 |
|
96 |
| - $this->assertSame($ref->getLogicalName(), $template->getLogicalName()); |
97 |
| - $this->assertSame($logicalName, $template->getLogicalName()); |
98 |
| - $this->assertSame($path, $template->getPath()); |
99 |
| - }); |
| 94 | + $this->assertSame($ref->getLogicalName(), $template->getLogicalName()); |
| 95 | + $this->assertSame($logicalName, $template->getLogicalName()); |
| 96 | + $this->assertSame($path, $template->getPath()); |
100 | 97 | }
|
101 | 98 |
|
102 | 99 | public function provideAbsolutePaths()
|
|
0 commit comments