public function InputOptionTest::testConstructor in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Input/InputOptionTest.php \Symfony\Component\Console\Tests\Input\InputOptionTest::testConstructor()
File
- vendor/
symfony/ console/ Tests/ Input/ InputOptionTest.php, line 18
Class
Namespace
Symfony\Component\Console\Tests\InputCode
public function testConstructor() {
$option = new InputOption('foo');
$this
->assertEquals('foo', $option
->getName(), '__construct() takes a name as its first argument');
$option = new InputOption('--foo');
$this
->assertEquals('foo', $option
->getName(), '__construct() removes the leading -- of the option name');
}