本文整理汇总了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();
}
示例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();
}
示例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();
}
示例4: setUp
public function setUp()
{
$this->helper = new FormInputHelper();
parent::setUp();
}
示例5: setUp
public function setUp()
{
$this->helper = new FormFileApcProgress();
parent::setUp();
}
示例6: setUp
public function setUp()
{
$this->helper = new FormHiddenHelper();
parent::setUp();
}
示例7: setUp
public function setUp()
{
$this->helper = new FormTextareaHelper();
parent::setUp();
}
示例8: setUp
public function setUp()
{
$this->helper = new FormDateTimeHelper();
parent::setUp();
}
示例9: setUp
public function setUp()
{
$this->helper = new FormNumberHelper();
parent::setUp();
}
示例10: setUp
public function setUp()
{
$this->helper = new FormMultiCheckboxHelper();
parent::setUp();
}
示例11: setUp
public function setUp()
{
$this->helper = new FormPasswordHelper();
parent::setUp();
}
示例12: setUp
public function setUp()
{
$this->helper = new FormMonthSelectHelper();
parent::setUp();
}
示例13: setUp
public function setUp()
{
$this->helper = new FormCaptchaHelper();
parent::setUp();
}
示例14: setUp
public function setUp()
{
$this->helper = new FormElementErrorsHelper();
parent::setUp();
}