Beispiel #1
0
 /**
  * Creates a new Zend_Filter_Alpha object for each test method
  *
  * @return void
  */
 public function setUp()
 {
     $this->_filter = new Zend_Filter_Alpha();
     if (null === self::$_unicodeEnabled) {
         self::$_unicodeEnabled = @preg_match('/\\pL/u', 'a') ? true : false;
     }
 }
Beispiel #2
0
 /**
  * Creates a new Zend_Filter_Alpha object for each test method
  *
  * @return void
  */
 public function setUp()
 {
     $this->_filter = new Zend_Filter_Alpha();
     if (null === self::$_unicodeEnabled) {
         self::$_unicodeEnabled = @preg_match('/\\pL/u', 'a') ? true : false;
     }
     if (null === self::$_meansEnglishAlphabet) {
         $this->_locale = new Zend_Locale('auto');
         self::$_meansEnglishAlphabet = in_array($this->_locale->getLanguage(), array('ja'));
     }
 }