コード例 #1
0
ファイル: Password.php プロジェクト: OliverMonneke/pennePHP
 /**
  *
  */
 protected function prepareChars()
 {
     $this->charsToUse .= self::$chars;
     if ($this->useSpecialChars) {
         $this->charsToUse .= self::$specialChars;
     }
     if ($this->useUmlauts) {
         $this->charsToUse .= self::$umlauts;
     }
     if ($this->useLowerCase) {
         $this->charsToUse .= String::lower($this->charsToUse);
     }
     if ($this->useUpperCase) {
         $this->charsToUse .= String::upper($this->charsToUse);
     }
     $charArray = Collection::explode($this->charsToUse, '');
     if (Collection::isValid($charArray)) {
         $this->charArray = array_unique($charArray);
     }
 }
コード例 #2
0
 /**
  *
  */
 public function testExplodeWithWrongDataType()
 {
     /** @noinspection PhpParamsInspection */
     $this->assertFalse(Collection::explode(['a', 'b', 'c'], 'b'));
 }