示例#1
0
文件: CoOptionTest.php 项目: mpyw/co
 public function testReconfigure()
 {
     $options = new CoOption();
     $new_options = $options->reconfigure(['pipeline' => true]);
     $this->assertTrue($new_options['pipeline']);
     $this->assertNotEquals($new_options, $options);
 }
示例#2
0
文件: Co.php 项目: mpyw/co
 /**
  * Get CoOption default as array.
  * @return array
  */
 public static function getDefaultOptions()
 {
     return CoOption::getDefault();
 }