diff options
author | Diego Baños Fariñas <diegobanosfarinas@gmail.com> | 2017-04-27 00:55:02 +0300 |
---|---|---|
committer | Stefan Giehl <stefan@piwik.org> | 2017-04-27 00:55:02 +0300 |
commit | d2e9f96ab3cc6bae461fc2ed309a060f243cea8c (patch) | |
tree | bdf9d03399356cf5bc34f27579221e579167a26a /tests/PHPUnit/Unit/ConsoleTest.php | |
parent | 0064cb9a923cdd660a78f100d28f6715b0522efa (diff) |
Bugfix: Fix console -V and --version not showing the version. Fixes #10640 (#11639)
Diffstat (limited to 'tests/PHPUnit/Unit/ConsoleTest.php')
-rw-r--r-- | tests/PHPUnit/Unit/ConsoleTest.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/PHPUnit/Unit/ConsoleTest.php b/tests/PHPUnit/Unit/ConsoleTest.php new file mode 100644 index 0000000000..f13f825f32 --- /dev/null +++ b/tests/PHPUnit/Unit/ConsoleTest.php @@ -0,0 +1,25 @@ +<?php +/** + * Piwik - free/libre analytics platform + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + */ +namespace Piwik\Tests\Unit; + +use Piwik\Console; +use Piwik\Version; + +/** + * @group Console + */ +class ConsoleTest extends \PHPUnit_Framework_TestCase +{ + public function testIsApplicationNameAndVersionCorrect() + { + $console = new Console(); + + $this->assertEquals('Piwik', $console->getName()); + $this->assertEquals(Version::VERSION, $console->getVersion()); + } +} |