PHP Classes

File: tests/unit/Rule/CaptchaTest.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   tests/unit/Rule/CaptchaTest.php   Download  
File: tests/unit/Rule/CaptchaTest.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 8 years ago
Size: 493 bytes
 

Contents

Class file image Download
<?php

class Rule_CaptchaTest extends UnitTestCase {
   
    function
setUp() {
    }
   
    function
TearDown() {
    }
   
    function
testRule_CaptchaNotNull() {
       
$dataspace = new A_Collection();

       
$field = 'foo';
       
$errorMsg = 'foo error';
       
$renderer = '';
       
$session = null;
       
$sessionkey = null;
       
$Rule_Captcha = new A_Rule_Captcha($field, $errorMsg, $renderer, $session, $sessionkey);
       
       
$result = true;
       
$this->assertTrue($result);
       
$this->assertFalse(!$result);
    }
   
}