File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /*
4+ * This file is part of the Symfony package.
5+ *
6+ * (c) Fabien Potencier <fabien@symfony.com>
7+ *
8+ * For the full copyright and license information, please view the LICENSE
9+ * file that was distributed with this source code.
10+ */
11+
12+ namespace Symfony \Bridge \PhpUnit \Tests ;
13+
14+ use PHPUnit \Framework \TestCase ;
15+
16+ final class ExpectedDeprecationAnnotationTest extends TestCase
17+ {
18+ /**
19+ * Do not remove this test in the next major versions.
20+ *
21+ * @group legacy
22+ *
23+ * @expectedDeprecation foo
24+ */
25+ public function testOne ()
26+ {
27+ @trigger_error ('foo ' , E_USER_DEPRECATED );
28+ }
29+
30+ /**
31+ * Do not remove this test in the next major versions.
32+ *
33+ * @group legacy
34+ *
35+ * @expectedDeprecation foo
36+ * @expectedDeprecation bar
37+ */
38+ public function testMany ()
39+ {
40+ @trigger_error ('foo ' , E_USER_DEPRECATED );
41+ @trigger_error ('bar ' , E_USER_DEPRECATED );
42+ }
43+ }
You can’t perform that action at this time.
0 commit comments