Skip to content

Commit 12ba27b

Browse files
committed
Fix test
1 parent 584410f commit 12ba27b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/CmdrTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function testUsingAdd()
4545
$lol = function ($req) use(&$cnt) {
4646
$this->assertInstanceOf(Request::class, $req);
4747
$this->assertEquals('abc def', $req->args['stuff']);
48-
$this->assertEquals(['--bar'], $req->args->getOpts());
48+
$this->assertTrue($req->args->getOpt('--bar'));
4949
$cnt++;
5050
};
5151
$cmdr->add('test', $lol, syntax: '<stuff>...', opts: ['--bar']);

0 commit comments

Comments
 (0)