public function isa($type, $option = null) { // "bool" was kept for backward compatibility if ($type === 'bool') { $type = 'boolean'; } $this->isa = $type; $this->isaOption = $option; return $this; }
/** * @expectedException Exception */ public function testInvalidTypeClass() { $opt = new Option('scope'); $opt->isa('SomethingElse'); $class = $opt->getTypeClass(); }