Skip to content

Commit dbca0e9

Browse files
Merge branch '3.4' into 4.3
* 3.4: Update links to documentation [Validator] Add the missing translations for the Arabic (ar) locale ensure to expect no validation for the right reasons [PhpUnitBridge] Add test case for @expectedDeprecation annotation Update year in license files [Console][FormatterHelper] Use helper strlen statically and remove duplicated code Fix BC issue in phpDoc Reflection library [Translator] Performance improvement in MessageCatalogue and catalogue operations.
2 parents 34f0f40 + 62b6641 commit dbca0e9

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014-2019 Fabien Potencier
1+
Copyright (c) 2014-2020 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
}

0 commit comments

Comments
 (0)