/** * Construct available pickers. */ public function __construct() { $domPicker = new DOMURIPicker(); if ($domPicker->isAvailable()) { $this->pickers[] = $domPicker; } $regExpPicker = new RegExpURIPicker(); if ($regExpPicker->isAvailable()) { $this->pickers[] = $regExpPicker; } }
/** * All pickers are available on this platform. */ public function testIsAvailable() { $picker = new DOMURIPicker(); $this->assertTrue($picker->isAvailable()); }