コード例 #1
0
ファイル: AlphaTest.php プロジェクト: bradley-holt/zf2
 /**
  * Creates a new AlphaFilter object for each test method
  *
  * @return void
  */
 public function setUp()
 {
     if (null === self::$_unicodeEnabled) {
         self::$_unicodeEnabled = @preg_match('/\\pL/u', 'a') ? true : false;
     }
     $this->_locale = new Locale('auto');
     if (null === self::$_meansEnglishAlphabet) {
         self::$_meansEnglishAlphabet = in_array($this->_locale->getLanguage(), array('ja'));
     }
     $this->_filter = new AlphaFilter(array('unicodeEnabled' => self::$_unicodeEnabled, 'locale' => $this->_locale));
 }