當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Helper\CommonTestCase類代碼示例

本文整理匯總了PHP中ZendTest\Form\View\Helper\CommonTestCase的典型用法代碼示例。如果您正苦於以下問題:PHP CommonTestCase類的具體用法?PHP CommonTestCase怎麽用?PHP CommonTestCase使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了CommonTestCase類的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: setUp

 public function setUp()
 {
     if (!extension_loaded('intl')) {
         $this->markTestSkipped('ext/intl not enabled');
     }
     $this->helper = new FormMonthSelectHelper();
     parent::setUp();
 }
開發者ID:pnaq57,項目名稱:zf2demo,代碼行數:8,代碼來源:FormMonthSelectTest.php

示例2: setUp

 public function setUp()
 {
     if (!constant('TESTS_ZEND_FORM_RECAPTCHA_SUPPORT')) {
         $this->markTestSkipped('Enable TESTS_ZEND_FORM_RECAPTCHA_SUPPORT to test PDF render');
     }
     $this->helper = new ReCaptchaHelper();
     $this->captcha = new ReCaptcha(array('sessionClass' => 'ZendTest\\Captcha\\TestAsset\\SessionContainer'));
     $service = $this->captcha->getService();
     $service->setPublicKey($this->publicKey);
     $service->setPrivateKey($this->privateKey);
     parent::setUp();
 }
開發者ID:pnaq57,項目名稱:zf2demo,代碼行數:12,代碼來源:ReCaptchaTest.php

示例3: tearDown

 /**
  * Tears down the fixture, for example, close a network connection.
  * This method is called after a test is executed.
  *
  * @return void
  */
 public function tearDown()
 {
     // remove captcha images
     if (!isset($this->testDir)) {
         parent::tearDown();
         return;
     }
     foreach (new DirectoryIterator($this->testDir) as $file) {
         if (!$file->isDot() && !$file->isDir()) {
             unlink($file->getPathname());
         }
     }
     parent::tearDown();
 }
開發者ID:nieldm,項目名稱:zf2,代碼行數:20,代碼來源:ImageTest.php

示例4: setUp

 public function setUp()
 {
     $this->helper = new FormInputHelper();
     parent::setUp();
 }
開發者ID:robertodormepoco,項目名稱:zf2,代碼行數:5,代碼來源:FormInputTest.php

示例5: setUp

 public function setUp()
 {
     $this->helper = new FormFileApcProgress();
     parent::setUp();
 }
開發者ID:razvansividra,項目名稱:pnlzf2-1,代碼行數:5,代碼來源:FormFileApcProgressTest.php

示例6: setUp

 public function setUp()
 {
     $this->helper = new FormHiddenHelper();
     parent::setUp();
 }
開發者ID:navassouza,項目名稱:zf2,代碼行數:5,代碼來源:FormHiddenTest.php

示例7: setUp

 public function setUp()
 {
     $this->helper = new FormTextareaHelper();
     parent::setUp();
 }
開發者ID:rajanlamic,項目名稱:IntTest,代碼行數:5,代碼來源:FormTextareaTest.php

示例8: setUp

 public function setUp()
 {
     $this->helper = new FormDateTimeHelper();
     parent::setUp();
 }
開發者ID:rajanlamic,項目名稱:IntTest,代碼行數:5,代碼來源:FormDateTimeTest.php

示例9: setUp

 public function setUp()
 {
     $this->helper = new FormNumberHelper();
     parent::setUp();
 }
開發者ID:razvansividra,項目名稱:pnlzf2-1,代碼行數:5,代碼來源:FormNumberTest.php

示例10: setUp

 public function setUp()
 {
     $this->helper = new FormMultiCheckboxHelper();
     parent::setUp();
 }
開發者ID:rajanlamic,項目名稱:IntTest,代碼行數:5,代碼來源:FormMultiCheckboxTest.php

示例11: setUp

 public function setUp()
 {
     $this->helper = new FormPasswordHelper();
     parent::setUp();
 }
開發者ID:navassouza,項目名稱:zf2,代碼行數:5,代碼來源:FormPasswordTest.php

示例12: setUp

 public function setUp()
 {
     $this->helper = new FormMonthSelectHelper();
     parent::setUp();
 }
開發者ID:rajanlamic,項目名稱:IntTest,代碼行數:5,代碼來源:FormMonthSelectTest.php

示例13: setUp

 public function setUp()
 {
     $this->helper = new FormCaptchaHelper();
     parent::setUp();
 }
開發者ID:haoyanfei,項目名稱:zf2,代碼行數:5,代碼來源:FormCaptchaTest.php

示例14: setUp

 public function setUp()
 {
     $this->helper = new FormElementErrorsHelper();
     parent::setUp();
 }
開發者ID:navassouza,項目名稱:zf2,代碼行數:5,代碼來源:FormElementErrorsTest.php


注:本文中的ZendTest\Form\View\Helper\CommonTestCase類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。