当前位置: 首页>>代码示例>>PHP>>正文


PHP data::clean方法代码示例

本文整理汇总了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();
 }
开发者ID:lenninsanchez,项目名称:donadores,代码行数:7,代码来源:WebDriverTest.php

示例2: tearDown

 protected function tearDown()
 {
     if ($this->module) {
         $this->module->_after($this->makeTest());
     }
     data::clean();
 }
开发者ID:augustus-amalejo,项目名称:palittayo,代码行数:7,代码来源:PhpBrowserTest.php

示例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();
 }
开发者ID:itillawarra,项目名称:cmfive,代码行数:29,代码来源:FacebookTest.php

示例4: _after

 public function _after()
 {
     data::clean();
 }
开发者ID:surjit,项目名称:Codeception,代码行数:4,代码来源:WebDriverTest.php

示例5: tearDown

 public function tearDown()
 {
     data::clean();
 }
开发者ID:pfz,项目名称:codeception,代码行数:4,代码来源:FrameworksTest.php

示例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();
 }
开发者ID:janhenkgerritsen,项目名称:Codeception,代码行数:15,代码来源:FacebookTest.php

示例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();
 }
开发者ID:solutionDrive,项目名称:Codeception,代码行数:12,代码来源:FacebookTest.php


注:本文中的data::clean方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。