getDefault() public static method

Get default options.
public static getDefault ( ) : array
return array $options
Beispiel #1
0
 public function testStaticDefaults()
 {
     $def = ['throw' => false, 'pipeline' => true, 'multiplex' => false, 'interval' => 0.3, 'concurrency' => 1];
     CoOption::setDefault($def);
     $options = CoOption::getDefault();
     foreach ($def as $key => $value) {
         $this->assertEquals($value, $options[$key]);
     }
 }
Beispiel #2
0
Datei: Co.php Projekt: mpyw/co
 /**
  * Get CoOption default as array.
  * @return array
  */
 public static function getDefaultOptions()
 {
     return CoOption::getDefault();
 }