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