예제 #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;
     }
 }
예제 #2
0
 /**
  * All pickers are available on this platform.
  */
 public function testIsAvailable()
 {
     $picker = new DOMURIPicker();
     $this->assertTrue($picker->isAvailable());
 }