/** * */ 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); } }
/** * */ public function testExplodeWithWrongDataType() { /** @noinspection PhpParamsInspection */ $this->assertFalse(Collection::explode(['a', 'b', 'c'], 'b')); }