Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
knivey committed May 1, 2021
1 parent 584410f commit 12ba27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CmdrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function testUsingAdd()
$lol = function ($req) use(&$cnt) {
$this->assertInstanceOf(Request::class, $req);
$this->assertEquals('abc def', $req->args['stuff']);
$this->assertEquals(['--bar'], $req->args->getOpts());
$this->assertTrue($req->args->getOpt('--bar'));
$cnt++;
};
$cmdr->add('test', $lol, syntax: '<stuff>...', opts: ['--bar']);
Expand Down

0 comments on commit 12ba27b

Please sign in to comment.