File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
src/Symfony/Component/Validator/Tests/Mapping/Loader Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 17
17
18
18
class StaticMethodLoaderTest extends \PHPUnit_Framework_TestCase
19
19
{
20
+ private $ errorLevel ;
21
+
22
+ protected function setUp ()
23
+ {
24
+ $ this ->errorLevel = error_reporting ();
25
+ }
26
+
27
+ protected function tearDown ()
28
+ {
29
+ error_reporting ($ this ->errorLevel );
30
+ }
31
+
20
32
public function testLoadClassMetadataReturnsTrueIfSuccessful ()
21
33
{
22
34
$ loader = new StaticMethodLoader ('loadMetadata ' );
@@ -78,6 +90,8 @@ public function testLoadClassMetadataInAbstractClasses()
78
90
79
91
public function testLoadClassMetadataIgnoresAbstractMethods ()
80
92
{
93
+ error_reporting (E_ALL | E_STRICT );
94
+
81
95
$ loader = new StaticMethodLoader ('loadMetadata ' );
82
96
$ caught = false ;
83
97
try {
You can’t perform that action at this time.
0 commit comments