1 | <?php |
||
14 | class ExceptionListenerTest extends PHPUnit_Framework_TestCase |
||
15 | { |
||
16 | /** |
||
17 | * @var string TEMPLATE_PATH |
||
18 | */ |
||
19 | const TEMPLATE_PATH = 'Template'; |
||
20 | |||
21 | /** |
||
22 | * @var Twig_Loader_Filesystem |
||
23 | */ |
||
24 | protected $twigLoader; |
||
25 | |||
26 | /** |
||
27 | * @var Twig_Environment|Phake_IMock |
||
28 | */ |
||
29 | protected $twigEnvironment; |
||
30 | |||
31 | /** |
||
32 | * @var GetResponseEvent |
||
33 | */ |
||
34 | protected $responseEvent; |
||
35 | |||
36 | /** |
||
37 | * @var GetResponseForExceptionEvent |
||
38 | */ |
||
39 | protected $exceptionEvent; |
||
40 | |||
41 | /** |
||
42 | * @var RenderSubscriber |
||
43 | */ |
||
44 | protected $renderSubscriber; |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function setUp() |
||
58 | |||
59 | /** |
||
60 | * Test we have register events subscribed |
||
61 | */ |
||
62 | public function testGetSubscriberEvent() |
||
68 | |||
69 | /** |
||
70 | * Test the lexer update to have a custom lexer for the front |
||
71 | */ |
||
72 | public function testSetLexerForTheFront() |
||
78 | |||
79 | /** |
||
80 | * Test the lexer update to have the default lexer for exception |
||
81 | */ |
||
82 | public function testSetLexerForException() |
||
89 | } |
||
90 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..