本文整理汇总了PHP中data::clean方法的典型用法代码示例。如果您正苦于以下问题:PHP data::clean方法的具体用法?PHP data::clean怎么用?PHP data::clean使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类data
的用法示例。
在下文中一共展示了data::clean方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
public function tearDown()
{
$this->noPhpWebserver();
$this->noSelenium();
$this->module->_after($this->makeTest());
data::clean();
}
示例2: tearDown
protected function tearDown()
{
if ($this->module) {
$this->module->_after($this->makeTest());
}
data::clean();
}
示例3: testLoginToFacebook
public function testLoginToFacebook()
{
$this->markTestSkipped();
// preconditions: #1 php web server being run
$browserModule = new PhpBrowser();
$browserModule->_setConfig(array('url' => 'http://localhost:8000'));
$browserModule->_initialize();
$browserModule->_cleanup();
$browserModule->_before($this->makeTest());
SuiteManager::$modules['PhpBrowser'] = $browserModule;
// preconditions: #2 facebook test user was created
$this->module->haveFacebookTestUserAccount();
$testUserFirstName = $this->module->grabFacebookTestUserFirstName();
// preconditions: #3 test user logged in on facebook
$this->module->haveTestUserLoggedInOnFacebook();
// go to our page with facebook login button
$browserModule->amOnPage('/facebook');
// check that yet we are not logged in with facebook
$browserModule->see('You are not Connected.');
// click on "Login with Facebook" button to start login with facebook
$browserModule->click('Login with Facebook');
// check that we are logged in with facebook
$browserModule->see('Your User Object (/me)');
$browserModule->see($testUserFirstName);
// cleanup
unset(SuiteManager::$modules['PhpBrowser']);
$browserModule->_after($this->makeTest());
data::clean();
}
示例4: _after
public function _after()
{
data::clean();
}
示例5: tearDown
public function tearDown()
{
data::clean();
}
示例6: testLoginToFacebook
public function testLoginToFacebook()
{
if (PHP_MAJOR_VERSION < 7 && getenv('TRAVIS')) {
$this->markTestSkipped('run only one thread on Travis');
}
// precondition: you need to have a server running for this test
// you can start a php server with: php -S 127.0.0.1:8000 -t tests/data/app
$browserModule = new PhpBrowser(make_container());
$this->initModule($browserModule, ['url' => 'http://localhost:8000']);
$this->module->_inject($browserModule);
$this->loginToFacebook($browserModule);
// cleanup
$browserModule->_after($this->makeTest());
data::clean();
}
示例7: testLoginToFacebook
public function testLoginToFacebook()
{
// precondition: you need to have a server running for this test
// you can start a php server with: php -S 127.0.0.1:8000 -t tests/data/app
$browserModule = new PhpBrowser($this->makeContainer());
$this->initModule($browserModule, ['url' => 'http://localhost:8000']);
$this->module->_inject($browserModule);
$this->loginToFacebook($browserModule);
// cleanup
$browserModule->_after($this->makeTest());
data::clean();
}