for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* test Event Object class
*
* @package BlueEvent
* @subpackage Test
* @author Michał Adamiak <[email protected]>
* @copyright chajr/bluetree
*/
namespace BlueEventTest\Config;
use BlueEvent\Event\Config\JsonConfig;
use PHPUnit\Framework\TestCase;
class JsonConfigTest extends TestCase
{
public function testLoadConfig()
$arrayConfig = new JsonConfig;
$config = $arrayConfig->readConfig(
__DIR__ . '/testConfig/config.json'
);
$this->assertEquals(
[
'test_event_code' => [
'object' => 'BlueEvent\Event\BaseEvent',
'listeners' => [
'ClassOne::method',
'ClassSecond::method',
'someFunction',
]
],
$config
}