本文整理匯總了PHP中Cake\Utility\Inflector::reset方法的典型用法代碼示例。如果您正苦於以下問題:PHP Inflector::reset方法的具體用法?PHP Inflector::reset怎麽用?PHP Inflector::reset使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Cake\Utility\Inflector
的用法示例。
在下文中一共展示了Inflector::reset方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: tearDown
/**
* tearDown
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
Inflector::reset();
}
示例2:
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 3.0.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
use Cake\Utility\Inflector;
// Store the initial state
Inflector::reset();
示例3: tearDownAfterClass
public static function tearDownAfterClass()
{
parent::tearDownAfterClass();
Inflector::reset();
}