Skip to content

Commit

Permalink
[Validator] Fixed StaticMethodLoader on systems that don't have E_STR…
Browse files Browse the repository at this point in the history
…ICT enabled by default
  • Loading branch information
webmozart committed May 22, 2014
1 parent 8850274 commit a470ae2
Showing 1 changed file with 14 additions and 0 deletions.
Expand Up @@ -17,6 +17,18 @@

class StaticMethodLoaderTest extends \PHPUnit_Framework_TestCase
{
private $errorLevel;

protected function setUp()
{
$this->errorLevel = error_reporting();
}

protected function tearDown()
{
error_reporting($this->errorLevel);
}

public function testLoadClassMetadataReturnsTrueIfSuccessful()
{
$loader = new StaticMethodLoader('loadMetadata');
Expand Down Expand Up @@ -78,6 +90,8 @@ public function testLoadClassMetadataInAbstractClasses()

public function testLoadClassMetadataIgnoresAbstractMethods()
{
error_reporting(E_ALL | E_STRICT);

$loader = new StaticMethodLoader('loadMetadata');
$caught = false;
try {
Expand Down

0 comments on commit a470ae2

Please sign in to comment.