Skip to content

Commit

Permalink
Add first test
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Sep 8, 2018
1 parent dc6d867 commit 43ac0fc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/unit/ArgumentTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Gt\Cli\Test;

use Gt\Cli\Argument\ShortOptionArgument;
use PHPUnit\Framework\TestCase;

class ArgumentTest extends TestCase {
public function testShortOption() {
$value = uniqid();
$arg = new ShortOptionArgument("-d", $value);

self::assertEquals("d", $arg->getKey());
self::assertEquals($value, $arg->getValue());
}
}

0 comments on commit 43ac0fc

Please sign in to comment.