11<?php
22
3- /**
4- * Test: Nette\DI\Helpers::expand()
5- */
6-
73declare (strict_types=1 );
84
95use Nette \DI \Helpers ;
@@ -22,10 +18,10 @@ class TestClass
2218
2319$ rc = new ReflectionClass (TestClass::class);
2420
25- Assert::same ('' , Helpers::parseAnnotation ($ rc , 'inject ' ));
26- Assert::same (null , Helpers::parseAnnotation ($ rc , 'injec ' ));
27- Assert::same ('type ' , Helpers::parseAnnotation ($ rc , 'var ' ));
28- Assert::same ('bool|int ' , Helpers::parseAnnotation ($ rc , 'return ' ));
21+ Assert::same ('' , @ Helpers::parseAnnotation ($ rc , 'inject ' ));
22+ Assert::same (null , @ Helpers::parseAnnotation ($ rc , 'injec ' ));
23+ Assert::same ('type ' , @ Helpers::parseAnnotation ($ rc , 'var ' ));
24+ Assert::same ('bool|int ' , @ Helpers::parseAnnotation ($ rc , 'return ' ));
2925
3026
3127/** @return*/
@@ -35,7 +31,7 @@ class TestClass2
3531
3632$ rc = new ReflectionClass (TestClass2::class);
3733
38- Assert::same ('' , Helpers::parseAnnotation ($ rc , 'return ' ));
34+ Assert::same ('' , @ Helpers::parseAnnotation ($ rc , 'return ' ));
3935
4036
4137/** @return
@@ -47,7 +43,7 @@ class TestClass3
4743
4844$ rc = new ReflectionClass (TestClass3::class);
4945
50- Assert::same ('' , Helpers::parseAnnotation ($ rc , 'return ' ));
46+ Assert::same ('' , @ Helpers::parseAnnotation ($ rc , 'return ' ));
5147
5248
5349/**
@@ -59,6 +55,6 @@ class TestClass4
5955
6056$ rc = new ReflectionClass (TestClass4::class);
6157
62- Assert::same (null , Helpers::parseAnnotation ($ rc , 'inject ' ));
63- Assert::same (null , Helpers::parseAnnotation ($ rc , 'injec ' ));
64- Assert::same (null , Helpers::parseAnnotation ($ rc , 'var ' ));
58+ Assert::same (null , @ Helpers::parseAnnotation ($ rc , 'inject ' ));
59+ Assert::same (null , @ Helpers::parseAnnotation ($ rc , 'injec ' ));
60+ Assert::same (null , @ Helpers::parseAnnotation ($ rc , 'var ' ));
0 commit comments