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]); } }
/** * Get CoOption default as array. * @return array */ public static function getDefaultOptions() { return CoOption::getDefault(); }