We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 584410f commit 12ba27bCopy full SHA for 12ba27b
tests/CmdrTest.php
@@ -45,7 +45,7 @@ public function testUsingAdd()
45
$lol = function ($req) use(&$cnt) {
46
$this->assertInstanceOf(Request::class, $req);
47
$this->assertEquals('abc def', $req->args['stuff']);
48
- $this->assertEquals(['--bar'], $req->args->getOpts());
+ $this->assertTrue($req->args->getOpt('--bar'));
49
$cnt++;
50
};
51
$cmdr->add('test', $lol, syntax: '<stuff>...', opts: ['--bar']);
0 commit comments