/** * @param string $value * @return bool */ protected function _parseBoolOption($value) { return StringTyped::parseBoolOption($value); }
/** * @test */ public function scope() { $this->assertSame(true, StringTyped::parseBoolOption("true")); $this->assertSame('inactive', StringTyped::formatActive(null)); $this->assertSame('active', StringTyped::formatActive('1')); }