コード例 #1
0
ファイル: ExprBuilderTest.php プロジェクト: a53ali/CakePhP
 /**
  * Close the validation process and finalize with the given config.
  *
  * @param TreeBuilder $testBuilder The tree builder to finalize
  * @param array $config The config you want to use for the finalization, if nothing provided
  *                                 a simple array('key'=>'value') will be used
  *
  * @return array The finalized config values
  */
 protected function finalizeTestBuilder($testBuilder, $config = null)
 {
     return $testBuilder->end()->end()->end()->buildTree()->finalize(null === $config ? array('key' => 'value') : $config);
 }