-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from abacaphiliac/integration-tests
add ZF2 and ZF3 integration tests
- Loading branch information
Showing
14 changed files
with
10,283 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.idea | ||
composer.lock | ||
/composer.lock | ||
coverage.xml | ||
humbug.json | ||
humbuglog.txt | ||
/vendor | ||
vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<?php | ||
|
||
include __DIR__ . "/src/EnliteMonolog/Module.php"; | ||
include __DIR__ . "/src/EnliteMonolog/Module.php"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
namespace EnliteMonologTest\ZF2\IntegrationTest; | ||
|
||
use Monolog\Logger; | ||
use PHPUnit\Framework\TestCase; | ||
use Zend\Mvc\Application; | ||
|
||
class IntegrationTest extends TestCase | ||
{ | ||
/** @var Application */ | ||
private $sut; | ||
|
||
protected function setUp() | ||
{ | ||
$this->sut = Application::init(array( | ||
'module_listener_options' => array( | ||
'config_glob_paths' => array( | ||
__DIR__ . '/config/{{,*.}global,{,*.}local}.php', | ||
), | ||
), | ||
'modules' => array( | ||
'EnliteMonolog', | ||
), | ||
)); | ||
} | ||
|
||
public function testEnliteMonologServiceAvailableViaApplicationContainer() | ||
{ | ||
$services = $this->sut->getServiceManager(); | ||
|
||
/** @var Logger $logger */ | ||
$logger = $services->get('EnliteMonologService'); | ||
|
||
self::assertInstanceOf('\Monolog\Logger', $logger); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../config/monolog.global.php.dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "enlitepro/enlite-monolog-zf2-integration-test", | ||
"description": "Tests enlitepro/enlite-monolog ZF2 integration.", | ||
"minimum-stability": "stable", | ||
"license": "MIT", | ||
"autoload": { | ||
"psr-4": { | ||
"EnliteMonolog\\": "../../src/EnliteMonolog" | ||
} | ||
}, | ||
"require-dev": { | ||
"monolog/monolog": "^1.0.2", | ||
"zendframework/zendframework": "^2.0", | ||
"phpunit/phpunit": "^5.0" | ||
} | ||
} |
Oops, something went wrong.