Location: PHPKode > projects > SolarPHP > solar-system-1.1.1/solar/source/solar/tests/Test/Solar/Filter/SanitizeAlnum.php
<?php
/**
 * 
 * Concrete class test.
 * 
 */
class Test_Solar_Filter_SanitizeAlnum extends Test_Solar_Filter_Abstract {
    
    /**
     * 
     * Configuration values.
     * 
     * @var array
     * 
     */
    protected $_Test_Solar_Filter_SanitizeAlnum = array(
    );
    
    /**
     * 
     * Test -- Strips non-alphanumeric characters from the value.
     * 
     */
    public function testSanitizeAlnum()
    {
        $before = 'abc 123 ,./';
        $after = $this->_filter->sanitizeAlnum($before);
        
        $this->assertNotSame($before, $after);
        $this->assertSame($after, 'abc123');
    }
}
Return current item: SolarPHP