Skip to content

Commit

Permalink
added unit test for module class and updated composer.json and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Keil committed Mar 15, 2014
1 parent 52887eb commit d48658a
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/sandrokeil/EasyConfig/badges/quality-score.png?s=cdef161c14156e3e36ed0ce3d6fd7979d38d916c)](https://scrutinizer-ci.com/g/sandrokeil/EasyConfig/)
[![Coverage Status](https://coveralls.io/repos/sandrokeil/EasyConfig/badge.png?branch=master)](https://coveralls.io/r/sandrokeil/EasyConfig?branch=master)
[![Latest Stable Version](https://poser.pugx.org/sandrokeil/easy-config/v/stable.png)](https://packagist.org/packages/sandrokeil/easy-config)
[![Dependency Status](https://www.versioneye.com/user/projects/53245667ec13758e7d00014b/badge.png)](https://www.versioneye.com/user/projects/53245667ec13758e7d00014b)
[![Total Downloads](https://poser.pugx.org/sandrokeil/easy-config/downloads.png)](https://packagist.org/packages/sandrokeil/easy-config)

Easy config provides some abstract factories to easily create instances depending on configuration or retrieve specified module options.
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sandrokeil/easy-config",
"description": "EasyConfig provides some abstract factories to create easily instances depending on configuration or to retrieve specific module options.",
"description": "Zend Framework 2 module to retrieve specific module options and provides some abstract factories to create easily instances depending on configuration",
"homepage": "https://github.com/sandrokeil/EasyConfig",
"license": "BSD-3-Clause",
"type": "library",
Expand All @@ -26,11 +26,11 @@
"require-dev": {
"php": ">=5.3.3",
"zendframework/zendframework": "~2.2",
"phpunit/phpunit": ">=3.7",
"phpunit/php-invoker": "*",
"phpunit/phpunit-story": "*",
"phpmd/phpmd": ">=1.4",
"squizlabs/php_codesniffer": ">=1.4",
"phpunit/phpunit": "~3.7",
"phpunit/php-invoker": "~1.1",
"phpunit/phpunit-story": "~1.0",
"phpmd/phpmd": "~1.4",
"squizlabs/php_codesniffer": "~1.4",
"satooshi/php-coveralls": "~0.6"
},
"suggest": {
Expand Down
37 changes: 37 additions & 0 deletions tests/SakeTest/EasyConfig/Service/ModuleTest.php
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');
}
}

0 comments on commit d48658a

Please sign in to comment.