File tree Expand file tree Collapse file tree 5 files changed +1
-16
lines changed Expand file tree Collapse file tree 5 files changed +1
-16
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \ExpressionLanguage \Tests ;
13
13
14
14
use PHPUnit \Framework \TestCase ;
15
- use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
16
15
use Symfony \Component \ExpressionLanguage \ExpressionFunction ;
17
16
18
17
/**
22
21
*/
23
22
class ExpressionFunctionTest extends TestCase
24
23
{
25
- use ForwardCompatTestTrait;
26
-
27
24
public function testFunctionDoesNotExist ()
28
25
{
29
26
$ this ->expectException ('InvalidArgumentException ' );
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \ExpressionLanguage \Tests ;
13
13
14
14
use PHPUnit \Framework \TestCase ;
15
- use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
16
15
use Symfony \Component \ExpressionLanguage \ExpressionFunction ;
17
16
use Symfony \Component \ExpressionLanguage \ExpressionLanguage ;
18
17
use Symfony \Component \ExpressionLanguage \ParsedExpression ;
19
18
use Symfony \Component \ExpressionLanguage \Tests \Fixtures \TestProvider ;
20
19
21
20
class ExpressionLanguageTest extends TestCase
22
21
{
23
- use ForwardCompatTestTrait;
24
-
25
22
public function testCachedParse ()
26
23
{
27
24
$ cacheMock = $ this ->getMockBuilder ('Psr\Cache\CacheItemPoolInterface ' )->getMock ();
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \ExpressionLanguage \Tests ;
13
13
14
14
use PHPUnit \Framework \TestCase ;
15
- use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
16
15
use Symfony \Component \ExpressionLanguage \Lexer ;
17
16
use Symfony \Component \ExpressionLanguage \Token ;
18
17
use Symfony \Component \ExpressionLanguage \TokenStream ;
19
18
20
19
class LexerTest extends TestCase
21
20
{
22
- use ForwardCompatTestTrait;
23
-
24
21
/**
25
22
* @var Lexer
26
23
*/
27
24
private $ lexer ;
28
25
29
- private function doSetUp ()
26
+ protected function setUp ()
30
27
{
31
28
$ this ->lexer = new Lexer ();
32
29
}
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \ExpressionLanguage \Tests ;
13
13
14
14
use PHPUnit \Framework \TestCase ;
15
- use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
16
15
use Symfony \Component \ExpressionLanguage \Node \Node ;
17
16
use Symfony \Component \ExpressionLanguage \ParsedExpression ;
18
17
use Symfony \Component \ExpressionLanguage \ParserCache \ParserCacheAdapter ;
22
21
*/
23
22
class ParserCacheAdapterTest extends TestCase
24
23
{
25
- use ForwardCompatTestTrait;
26
-
27
24
public function testGetItem ()
28
25
{
29
26
$ poolMock = $ this ->getMockBuilder ('Symfony\Component\ExpressionLanguage\ParserCache\ParserCacheInterface ' )->getMock ();
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \ExpressionLanguage \Tests ;
13
13
14
14
use PHPUnit \Framework \TestCase ;
15
- use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
16
15
use Symfony \Component \ExpressionLanguage \Lexer ;
17
16
use Symfony \Component \ExpressionLanguage \Node ;
18
17
use Symfony \Component \ExpressionLanguage \Parser ;
19
18
20
19
class ParserTest extends TestCase
21
20
{
22
- use ForwardCompatTestTrait;
23
-
24
21
public function testParseWithInvalidName ()
25
22
{
26
23
$ this ->expectException ('Symfony\Component\ExpressionLanguage\SyntaxError ' );
You can’t perform that action at this time.
0 commit comments