public function testIsEmptyDirReturn() { // To test the return values, disable conversion of errors into exceptions $warningEnabledOrig = PHPUnit_Framework_Error_Warning::$enabled; PHPUnit_Framework_Error_Warning::$enabled = false; $this->assertFalse($this->stub->isEmptyDir(null)); mkdir(__DIR__ . "/emptydir"); $this->assertTrue($this->stub->isEmptyDir(__DIR__ . "/emptydir")); @rmdir(__DIR__ . "/emptydir"); PHPUnit_Framework_Error_Warning::$enabled = $warningEnabledOrig; }