-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added unit test for module class and updated composer.json and readme
- Loading branch information
Sandro Keil
committed
Mar 15, 2014
1 parent
52887eb
commit d48658a
Showing
3 changed files
with
44 additions
and
6 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
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 | ||
/** | ||
* Sake | ||
* | ||
* @link http://github.com/sandrokeil/EasyConfig for the canonical source repository | ||
* @copyright Copyright (c) 2014 Sandro Keil | ||
* @license http://github.com/sandrokeil/EasyConfig/blob/master/LICENSE.txt New BSD License | ||
*/ | ||
|
||
namespace SakeTest\EasyConfig; | ||
|
||
/** | ||
* Class ModuleTest | ||
* | ||
* Tests integrity of \Sake\EasyConfig\Module | ||
*/ | ||
class ModuleTest extends \SakeTest\Util\TestCase | ||
{ | ||
/** | ||
* Class under test | ||
* | ||
* @var string | ||
*/ | ||
protected $cut = '\Sake\EasyConfig\Module'; | ||
|
||
/** | ||
* Tests getConfig() should should return module configuration | ||
* | ||
* @covers \Sake\EasyConfig\Module::getConfig | ||
*/ | ||
public function testGetConfig() | ||
{ | ||
$cut = new $this->cut; | ||
$config = $cut->getConfig(); | ||
$this->assertSame(array(), $config, 'Configuration could not be read'); | ||
} | ||
} |