Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mvkasatkin committed Nov 8, 2017
1 parent 50f9fab commit f02b264
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ protected function afterInit()
AliasHelper::setInstance($this->container->get(AliasService::class));
}

/**
* @return array
*/
public function getConfig(): array
{
return $this->config;
}

/**
* @return ContainerInterface
*/
Expand Down
8 changes: 8 additions & 0 deletions tests/integration/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ public function testCreateApplication()
return $application;
}

public function testGetConfig()
{
$application = $this->createApplication();
$config = $application->getConfig();
$this->assertTrue(\is_array($config));
$this->assertTrue(isset($config['definitions']));
}

public function testHtmlString()
{
$application = $this->createApplication();
Expand Down

0 comments on commit f02b264

Please sign in to comment.