Skip to content

Commit

Permalink
fix: avoid loading annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed Jul 14, 2017
1 parent 2c52c36 commit d168d94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/josegonzalez/Dotenv/LoaderTest.php
Expand Up @@ -546,15 +546,15 @@ public function testExpectRuntimeException()

/**
* @covers \josegonzalez\Dotenv\Loader::apacheSetenv
* @expectedException Error
* @expectedExceptionMessage Call to undefined function josegonzalez\Dotenv\apache_getenv()
*/
public function testToApacheSetenvExceptionUnavailable()
{
if (version_compare(PHP_VERSION, '7.0', '<')) {
$this->markTestSkipped('Unable to mock bare php functions');
}

$this->expectException(\Error::class);
$this->expectExceptionMessage('Call to undefined function josegonzalez\Dotenv\apache_getenv()');
$this->Loader->parse();
$this->Loader->apacheSetenv(false);
}
Expand Down

0 comments on commit d168d94

Please sign in to comment.