/** * @covers Yeriomin\Getopt\Getopt::__get */ public function test__get() { $args = array('-s', '--opt1', 'val1', 'arg1'); $this->object->setRawArguments($args); $this->object->parse(); $this->assertEquals(null, $this->object->t); $this->assertEquals(true, $this->object->s); $this->assertEquals('val1', $this->object->opt1); }