PHP Classes

File: tests/unit/Filter/SetTest.php

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

Contents

Class file image Download
<?php

class Filter_SetTest extends UnitTestCase {
   
    protected
$data = array(
       
'name' => 'John Smith',
       
'phone' => '555-123-1234',
       
'fax' => '(530) 123-1234',
       
'favorite_color' => 'Purple',
       
'comments' => '',
    );
   
    function
setUp() {
    }
   
    function
TearDown() {
    }
   
    function
testValidatorFilterObject() {
         
$filters = new A_Filter_Set();

       
$filters->addFilter(new A_Filter_Tolower(), 'name');
        
$this->data = $filters->doFilter($this->data);
       
$this->assertEqual($this->data['name'], 'john smith');
    }

}