Skip to content

Commit

Permalink
add tests of Component
Browse files Browse the repository at this point in the history
  • Loading branch information
easy-system committed Jun 13, 2016
1 parent d15f878 commit f2afa14
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/ComponentTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php
/**
* This file is part of the "Easy System" package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Damon Smith <damon.easy.system@gmail.com>
*/
namespace Es\Mvc\Test;

use Es\Mvc\Component;

class ComponentTest extends \PHPUnit_Framework_TestCase
{
public function testGetVersion()
{
$component = new Component();
$version = $component->getVersion();
$this->assertInternalType('string', $version);
$this->assertRegExp('#\d+.\d+.\d+#', $version);
}
}

0 comments on commit f2afa14

Please sign in to comment.