PHP Classes

File: tests/unit/Rule/IteratorTest.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   tests/unit/Rule/IteratorTest.php   Download  
File: tests/unit/Rule/IteratorTest.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: 425 bytes
 

Contents

Class file image Download
<?php

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

       
$field = 'foo';
       
$rule = null;
       
$errorMsg = 'foo error';
       
$Rule_Iterator = new A_Rule_Iterator($rule, $field, $errorMsg);
       
       
$result = true;
       
$this->assertTrue($result);
       
$this->assertFalse(!$result);
    }
   
}