本文整理汇总了PHP中RedBeanPHP\Facade::getExtractedToolbox方法的典型用法代码示例。如果您正苦于以下问题:PHP Facade::getExtractedToolbox方法的具体用法?PHP Facade::getExtractedToolbox怎么用?PHP Facade::getExtractedToolbox使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RedBeanPHP\Facade
的用法示例。
在下文中一共展示了Facade::getExtractedToolbox方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testCanWeObtainToolbox
/**
* Test whether we can obtain a toolbox properly.
*
* @return void
*/
public function testCanWeObtainToolbox()
{
$toolbox = R::getToolBox();
asrt($toolbox instanceof TB, TRUE);
$extractedToolbox = R::getExtractedToolbox();
asrt(is_array($extractedToolbox), TRUE);
asrt(count($extractedToolbox), 4);
asrt($extractedToolbox[0] instanceof OODB, TRUE);
asrt($extractedToolbox[1] instanceof Adapter, TRUE);
asrt($extractedToolbox[2] instanceof QueryWriter, TRUE);
asrt($extractedToolbox[3] instanceof TB, TRUE);
$beanHelper = new SimpleFacadeBeanHelper();
$toolbox2 = $beanHelper->getToolbox();
asrt($toolbox2 instanceof TB, TRUE);
asrt($toolbox, $toolbox2);
$extractedToolbox = $beanHelper->getExtractedToolbox();
asrt(is_array($extractedToolbox), TRUE);
asrt(count($extractedToolbox), 4);
asrt($extractedToolbox[0] instanceof OODB, TRUE);
asrt($extractedToolbox[1] instanceof Adapter, TRUE);
asrt($extractedToolbox[2] instanceof QueryWriter, TRUE);
asrt($extractedToolbox[3] instanceof TB, TRUE);
}
示例2: getExtractedToolbox
public function getExtractedToolbox()
{
return Facade::getExtractedToolbox();
}