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