Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Merge PR #84 from branch 'hotfix/unit-improve-test'
Browse files Browse the repository at this point in the history
* hotfix/unit-improve-test:
  #84 added CHANGELOG note for adding Application\Module test
  improve unit test #79 : added Application\Module test
  • Loading branch information
samsonasik committed Dec 23, 2014
2 parents 7a5dd53 + c9a44c8 commit 4d030d5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- [69: Db usage for module list](https://github.com/sitrunlab/LearnZF2/pull/69)
- [69: Pagination module](https://github.com/sitrunlab/LearnZF2/pull/70)
- [74: Contributors Page](https://github.com/sitrunlab/LearnZF2/pull/74)
- [84: Improved unit test for Application\Module](https://github.com/sitrunlab/LearnZF2/pull/84)

## 0.0.2 - 2014-12-03

Expand Down
29 changes: 29 additions & 0 deletions module/Application/test/ApplicationTest/ModuleTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

namespace ApplicationTest;

use Application\Module;
use PHPUnit_Framework_TestCase;
use Zend\Console\Console;

class ModuleTest extends PHPUnit_Framework_TestCase
{
/**
* @var Module
*/
protected $module;

public function setUp()
{
$this->module = new Module();
}

public function testGetConsoleUsage()
{
$expected = [
'get contributors' => 'get contributors list',
];
$consoleAdapter = Console::detectBestAdapter();
$this->assertEquals($expected, $this->module->getConsoleUsage(new $consoleAdapter()));
}
}

0 comments on commit 4d030d5

Please sign in to comment.