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

improve unit test #79 : added Application\Module test #84

Merged
merged 1 commit into from
Dec 23, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()));
}
}