From f9a19fce91446a34aa433bb1426491fbb2005611 Mon Sep 17 00:00:00 2001
From: KodeStar ')
- {
- $markup = $trimmedMarkup;
- $markup = substr($markup, 3);
-
- $position = strpos($markup, " Hello Parsedown!
i');
assert('hi' === $ret);
@@ -223,7 +248,7 @@ may use internal buffers and may emit a final data chunk on close.
The filter function can be closed by invoking without any arguments:
```php
-$fun = Filter\fun('zlib.deflate');
+$fun = Clue\StreamFilter\fun('zlib.deflate');
$ret = $fun('hello') . $fun('world') . $fun();
assert('helloworld' === gzinflate($ret));
@@ -233,7 +258,7 @@ The filter function must not be used anymore after it has been closed.
Doing so will result in a `RuntimeException`:
```php
-$fun = Filter\fun('string.rot13');
+$fun = Clue\StreamFilter\fun('string.rot13');
$fun();
$fun('test'); // throws RuntimeException
@@ -248,40 +273,40 @@ If you feel some test case is missing or outdated, we're happy to accept PRs! :)
### remove()
-The `remove($filter)` function can be used to
+The `remove(resource
i');
+ * assert('hi' === $ret);
+ * ```
+ *
+ * Under the hood, this function allocates a temporary memory stream, so it's
+ * recommended to clean up the filter function after use.
+ * Also, some filter functions (in particular the
+ * [zlib compression filters](https://www.php.net/manual/en/filters.compression.php))
+ * may use internal buffers and may emit a final data chunk on close.
+ * The filter function can be closed by invoking without any arguments:
+ *
+ * ```php
+ * $fun = Clue\StreamFilter\fun('zlib.deflate');
+ *
+ * $ret = $fun('hello') . $fun('world') . $fun();
+ * assert('helloworld' === gzinflate($ret));
+ * ```
+ *
+ * The filter function must not be used anymore after it has been closed.
+ * Doing so will result in a `RuntimeException`:
+ *
+ * ```php
+ * $fun = Clue\StreamFilter\fun('string.rot13');
+ * $fun();
+ *
+ * $fun('test'); // throws RuntimeException
+ * ```
+ *
+ * > Note: If you're using the zlib compression filters, then you should be wary
+ * about engine inconsistencies between different PHP versions and HHVM.
+ * These inconsistencies exist in the underlying PHP engines and there's little we
+ * can do about this in this library.
+ * [Our test suite](tests/) contains several test cases that exhibit these issues.
+ * If you feel some test case is missing or outdated, we're happy to accept PRs! :)
*
* @param string $filter built-in filter name. See stream_get_filters() or http://php.net/manual/en/filters.php
* @param mixed $parameters (optional) parameters to pass to the built-in filter as-is
* @return callable a filter callback which can be append()'ed or prepend()'ed
- * @throws RuntimeException on error
+ * @throws \RuntimeException on error
* @link http://php.net/manual/en/filters.php
* @see stream_get_filters()
* @see append()
*/
function fun($filter, $parameters = null)
{
- $fp = fopen('php://memory', 'w');
- if (func_num_args() === 1) {
- $filter = @stream_filter_append($fp, $filter, STREAM_FILTER_WRITE);
+ $fp = \fopen('php://memory', 'w');
+ if (\func_num_args() === 1) {
+ $filter = @\stream_filter_append($fp, $filter, \STREAM_FILTER_WRITE);
} else {
- $filter = @stream_filter_append($fp, $filter, STREAM_FILTER_WRITE, $parameters);
+ $filter = @\stream_filter_append($fp, $filter, \STREAM_FILTER_WRITE, $parameters);
}
if ($filter === false) {
- fclose($fp);
- $error = error_get_last() + array('message' => '');
- throw new RuntimeException('Unable to access built-in filter: ' . $error['message']);
+ \fclose($fp);
+ $error = \error_get_last() + array('message' => '');
+ throw new \RuntimeException('Unable to access built-in filter: ' . $error['message']);
}
// append filter function which buffers internally
@@ -89,7 +261,7 @@ function fun($filter, $parameters = null)
// always return empty string in order to skip actually writing to stream resource
return '';
- }, STREAM_FILTER_WRITE);
+ }, \STREAM_FILTER_WRITE);
$closed = false;
@@ -100,12 +272,12 @@ function fun($filter, $parameters = null)
if ($chunk === null) {
$closed = true;
$buffer = '';
- fclose($fp);
+ \fclose($fp);
return $buffer;
}
// initialize buffer and invoke filters by attempting to write to stream
$buffer = '';
- fwrite($fp, $chunk);
+ \fwrite($fp, $chunk);
// buffer now contains everything the filter function returned
return $buffer;
@@ -113,22 +285,31 @@ function fun($filter, $parameters = null)
}
/**
- * remove a callback filter from the given stream
+ * Remove a filter previously added via `append()` or `prepend()`.
+ *
+ * ```php
+ * $filter = Clue\StreamFilter\append($stream, function () {
+ * // …
+ * });
+ * Clue\StreamFilter\remove($filter);
+ * ```
*
* @param resource $filter
- * @return boolean true on success or false on error
- * @throws Exception on error
+ * @return bool true on success or false on error
+ * @throws \RuntimeException on error
* @uses stream_filter_remove()
*/
function remove($filter)
{
- if (@stream_filter_remove($filter) === false) {
- throw new RuntimeException('Unable to remove given filter');
+ if (@\stream_filter_remove($filter) === false) {
+ // PHP 8 throws above on type errors, older PHP and memory issues can throw here
+ $error = \error_get_last();
+ throw new \RuntimeException('Unable to remove filter: ' . $error['message']);
}
}
/**
- * registers the callback filter and returns the resulting filter name
+ * Registers the callback filter and returns the resulting filter name
*
* There should be little reason to call this function manually.
*
@@ -140,7 +321,7 @@ function register()
static $registered = null;
if ($registered === null) {
$registered = 'stream-callback';
- stream_filter_register($registered, __NAMESPACE__ . '\CallbackFilter');
+ \stream_filter_register($registered, __NAMESPACE__ . '\CallbackFilter');
}
return $registered;
}
diff --git a/vendor/clue/stream-filter/src/functions_include.php b/vendor/clue/stream-filter/src/functions_include.php
index 346a91bb..4b315ae8 100644
--- a/vendor/clue/stream-filter/src/functions_include.php
+++ b/vendor/clue/stream-filter/src/functions_include.php
@@ -1,5 +1,6 @@
createStream();
-
- StreamFilter\append($stream, function ($chunk) {
- return strtoupper($chunk);
- });
-
- fwrite($stream, 'hello');
- fwrite($stream, 'world');
- rewind($stream);
-
- $this->assertEquals('HELLOWORLD', stream_get_contents($stream));
-
- fclose($stream);
- }
-
- public function testAppendNativePhpFunction()
- {
- $stream = $this->createStream();
-
- StreamFilter\append($stream, 'strtoupper');
-
- fwrite($stream, 'hello');
- fwrite($stream, 'world');
- rewind($stream);
-
- $this->assertEquals('HELLOWORLD', stream_get_contents($stream));
-
- fclose($stream);
- }
-
- public function testAppendChangingChunkSize()
- {
- $stream = $this->createStream();
-
- StreamFilter\append($stream, function ($chunk) {
- return str_replace(array('a','e','i','o','u'), '', $chunk);
- });
-
- fwrite($stream, 'hello');
- fwrite($stream, 'world');
- rewind($stream);
-
- $this->assertEquals('hllwrld', stream_get_contents($stream));
-
- fclose($stream);
- }
-
- public function testAppendReturningEmptyStringWillNotPassThrough()
- {
- $stream = $this->createStream();
-
- StreamFilter\append($stream, function ($chunk) {
- return '';
- });
-
- fwrite($stream, 'hello');
- fwrite($stream, 'world');
- rewind($stream);
-
- $this->assertEquals('', stream_get_contents($stream));
-
- fclose($stream);
- }
-
- public function testAppendEndEventCanBeBufferedOnClose()
- {
- if (PHP_VERSION < 5.4) $this->markTestSkipped('Not supported on legacy PHP');
-
- $stream = $this->createStream();
-
- StreamFilter\append($stream, function ($chunk = null) {
- if ($chunk === null) {
- // this signals the end event
- return '!';
- }
- return $chunk . ' ';
- }, STREAM_FILTER_WRITE);
-
- $buffered = '';
- StreamFilter\append($stream, function ($chunk) use (&$buffered) {
- $buffered .= $chunk;
- return '';
- });
-
- fwrite($stream, 'hello');
- fwrite($stream, 'world');
-
- fclose($stream);
-
- $this->assertEquals('hello world !', $buffered);
- }
-
- public function testAppendEndEventWillBeCalledOnRemove()
- {
- $stream = $this->createStream();
-
- $ended = false;
- $filter = StreamFilter\append($stream, function ($chunk = null) use (&$ended) {
- if ($chunk === null) {
- $ended = true;
- }
- return $chunk;
- }, STREAM_FILTER_WRITE);
-
- $this->assertEquals(0, $ended);
- StreamFilter\remove($filter);
- $this->assertEquals(1, $ended);
- }
-
- public function testAppendEndEventWillBeCalledOnClose()
- {
- $stream = $this->createStream();
-
- $ended = false;
- StreamFilter\append($stream, function ($chunk = null) use (&$ended) {
- if ($chunk === null) {
- $ended = true;
- }
- return $chunk;
- }, STREAM_FILTER_WRITE);
-
- $this->assertEquals(0, $ended);
- fclose($stream);
- $this->assertEquals(1, $ended);
- }
-
- public function testAppendWriteOnly()
- {
- $stream = $this->createStream();
-
- $invoked = 0;
-
- StreamFilter\append($stream, function ($chunk) use (&$invoked) {
- ++$invoked;
-
- return $chunk;
- }, STREAM_FILTER_WRITE);
-
- fwrite($stream, 'a');
- fwrite($stream, 'b');
- fwrite($stream, 'c');
- rewind($stream);
-
- $this->assertEquals(3, $invoked);
- $this->assertEquals('abc', stream_get_contents($stream));
-
- fclose($stream);
- }
-
- public function testAppendReadOnly()
- {
- $stream = $this->createStream();
-
- $invoked = 0;
-
- StreamFilter\append($stream, function ($chunk) use (&$invoked) {
- ++$invoked;
-
- return $chunk;
- }, STREAM_FILTER_READ);
-
- fwrite($stream, 'a');
- fwrite($stream, 'b');
- fwrite($stream, 'c');
- rewind($stream);
-
- $this->assertEquals(0, $invoked);
- $this->assertEquals('abc', stream_get_contents($stream));
- $this->assertEquals(1, $invoked);
-
- fclose($stream);
- }
-
- public function testOrderCallingAppendAfterPrepend()
- {
- $stream = $this->createStream();
-
- StreamFilter\append($stream, function ($chunk) {
- return '[' . $chunk . ']';
- }, STREAM_FILTER_WRITE);
-
- StreamFilter\prepend($stream, function ($chunk) {
- return '(' . $chunk . ')';
- }, STREAM_FILTER_WRITE);
-
- fwrite($stream, 'hello');
- rewind($stream);
-
- $this->assertEquals('[(hello)]', stream_get_contents($stream));
-
- fclose($stream);
- }
-
- public function testRemoveFilter()
- {
- $stream = $this->createStream();
-
- $first = StreamFilter\append($stream, function ($chunk) {
- return $chunk . '?';
- }, STREAM_FILTER_WRITE);
-
- StreamFilter\append($stream, function ($chunk) {
- return $chunk . '!';
- }, STREAM_FILTER_WRITE);
-
- StreamFilter\remove($first);
-
- fwrite($stream, 'hello');
- rewind($stream);
-
- $this->assertEquals('hello!', stream_get_contents($stream));
-
- fclose($stream);
- }
-
- public function testAppendFunDechunk()
- {
- if (defined('HHVM_VERSION')) $this->markTestSkipped('Not supported on HHVM (dechunk filter does not exist)');
-
- $stream = $this->createStream();
-
- StreamFilter\append($stream, StreamFilter\fun('dechunk'), STREAM_FILTER_WRITE);
-
- fwrite($stream, "2\r\nhe\r\n");
- fwrite($stream, "3\r\nllo\r\n");
- fwrite($stream, "0\r\n\r\n");
- rewind($stream);
-
- $this->assertEquals('hello', stream_get_contents($stream));
-
- fclose($stream);
- }
-
- public function testAppendThrows()
- {
- $this->createErrorHandler($errors);
-
- $stream = $this->createStream();
- $this->createErrorHandler($errors);
-
- StreamFilter\append($stream, function ($chunk) {
- throw new \DomainException($chunk);
- });
-
- fwrite($stream, 'test');
-
- $this->removeErrorHandler();
- $this->assertCount(1, $errors);
- $this->assertContains('test', $errors[0]);
- }
-
- public function testAppendThrowsDuringEnd()
- {
- $stream = $this->createStream();
- $this->createErrorHandler($errors);
-
- StreamFilter\append($stream, function ($chunk = null) {
- if ($chunk === null) {
- throw new \DomainException('end');
- }
- return $chunk;
- });
-
- fclose($stream);
-
- $this->removeErrorHandler();
-
- // We can only assert we're not seeing an exception here…
- // * php 5.3-5.6 sees one error here
- // * php 7 does not see any error here
- // * hhvm sees the same error twice
- //
- // If you're curious:
- //
- // var_dump($errors);
- // $this->assertCount(1, $errors);
- // $this->assertContains('end', $errors[0]);
- }
-
- public function testAppendThrowsShouldTriggerEnd()
- {
- $stream = $this->createStream();
- $this->createErrorHandler($errors);
-
- $ended = false;
- StreamFilter\append($stream, function ($chunk = null) use (&$ended) {
- if ($chunk === null) {
- $ended = true;
- return '';
- }
- throw new \DomainException($chunk);
- });
-
- $this->assertEquals(false, $ended);
- fwrite($stream, 'test');
- $this->assertEquals(true, $ended);
-
- $this->removeErrorHandler();
- $this->assertCount(1, $errors);
- $this->assertContains('test', $errors[0]);
- }
-
- public function testAppendThrowsShouldTriggerEndButIgnoreExceptionDuringEnd()
- {
- //$this->markTestIncomplete();
- $stream = $this->createStream();
- $this->createErrorHandler($errors);
-
- StreamFilter\append($stream, function ($chunk = null) {
- if ($chunk === null) {
- $chunk = 'end';
- //return '';
- }
- throw new \DomainException($chunk);
- });
-
- fwrite($stream, 'test');
-
- $this->removeErrorHandler();
- $this->assertCount(1, $errors);
- $this->assertContains('test', $errors[0]);
- }
-
- /**
- * @expectedException RuntimeException
- */
- public function testAppendInvalidStreamIsRuntimeError()
- {
- if (defined('HHVM_VERSION')) $this->markTestSkipped('Not supported on HHVM (does not reject invalid stream)');
- StreamFilter\append(false, function () { });
- }
-
- /**
- * @expectedException RuntimeException
- */
- public function testPrependInvalidStreamIsRuntimeError()
- {
- if (defined('HHVM_VERSION')) $this->markTestSkipped('Not supported on HHVM (does not reject invalid stream)');
- StreamFilter\prepend(false, function () { });
- }
-
- /**
- * @expectedException RuntimeException
- */
- public function testRemoveInvalidFilterIsRuntimeError()
- {
- if (defined('HHVM_VERSION')) $this->markTestSkipped('Not supported on HHVM (does not reject invalid filters)');
- StreamFilter\remove(false);
- }
-
- /**
- * @expectedException InvalidArgumentException
- */
- public function testInvalidCallbackIsInvalidArgument()
- {
- $stream = $this->createStream();
-
- StreamFilter\append($stream, 'a-b-c');
- }
-
- private function createStream()
- {
- return fopen('php://memory', 'r+');
- }
-
- private function createErrorHandler(&$errors)
- {
- $errors = array();
- set_error_handler(function ($_, $message) use (&$errors) {
- $errors []= $message;
- });
- }
-
- private function removeErrorHandler()
- {
- restore_error_handler();
- }
-}
diff --git a/vendor/clue/stream-filter/tests/FunTest.php b/vendor/clue/stream-filter/tests/FunTest.php
deleted file mode 100644
index d0812e86..00000000
--- a/vendor/clue/stream-filter/tests/FunTest.php
+++ /dev/null
@@ -1,61 +0,0 @@
-assertEquals('grfg', $rot('test'));
- $this->assertEquals('test', $rot($rot('test')));
- $this->assertEquals(null, $rot());
- }
-
- public function testFunInQuotedPrintable()
- {
- $encode = Filter\fun('convert.quoted-printable-encode');
- $decode = Filter\fun('convert.quoted-printable-decode');
-
- $this->assertEquals('t=C3=A4st', $encode('täst'));
- $this->assertEquals('täst', $decode($encode('täst')));
- $this->assertEquals(null, $encode());
- }
-
- /**
- * @expectedException RuntimeException
- */
- public function testFunWriteAfterCloseRot13()
- {
- $rot = Filter\fun('string.rot13');
-
- $this->assertEquals(null, $rot());
- $rot('test');
- }
-
- /**
- * @expectedException RuntimeException
- */
- public function testFunInvalid()
- {
- Filter\fun('unknown');
- }
-
- public function testFunInBase64()
- {
- $encode = Filter\fun('convert.base64-encode');
- $decode = Filter\fun('convert.base64-decode');
-
- $string = 'test';
- $this->assertEquals(base64_encode($string), $encode($string) . $encode());
- $this->assertEquals($string, $decode(base64_encode($string)));
-
- $encode = Filter\fun('convert.base64-encode');
- $decode = Filter\fun('convert.base64-decode');
- $this->assertEquals($string, $decode($encode($string) . $encode()));
-
- $encode = Filter\fun('convert.base64-encode');
- $this->assertEquals(null, $encode());
- }
-}
diff --git a/vendor/clue/stream-filter/tests/FunZlibTest.php b/vendor/clue/stream-filter/tests/FunZlibTest.php
deleted file mode 100644
index 752c8a2c..00000000
--- a/vendor/clue/stream-filter/tests/FunZlibTest.php
+++ /dev/null
@@ -1,79 +0,0 @@
-assertEquals(gzdeflate('hello world'), $data);
- }
-
- public function testFunZlibDeflateEmpty()
- {
- if (PHP_VERSION >= 7) $this->markTestSkipped('Not supported on PHP7 (empty string does not invoke filter)');
-
- $deflate = StreamFilter\fun('zlib.deflate');
-
- //$data = gzdeflate('');
- $data = $deflate();
-
- $this->assertEquals("\x03\x00", $data);
- }
-
- public function testFunZlibDeflateBig()
- {
- $deflate = StreamFilter\fun('zlib.deflate');
-
- $n = 1000;
- $expected = str_repeat('hello', $n);
-
- $bytes = '';
- for ($i = 0; $i < $n; ++$i) {
- $bytes .= $deflate('hello');
- }
- $bytes .= $deflate();
-
- $this->assertEquals($expected, gzinflate($bytes));
- }
-
- public function testFunZlibInflateHelloWorld()
- {
- $inflate = StreamFilter\fun('zlib.inflate');
-
- $data = $inflate(gzdeflate('hello world')) . $inflate();
-
- $this->assertEquals('hello world', $data);
- }
-
- public function testFunZlibInflateEmpty()
- {
- $inflate = StreamFilter\fun('zlib.inflate');
-
- $data = $inflate("\x03\x00") . $inflate();
-
- $this->assertEquals('', $data);
- }
-
- public function testFunZlibInflateBig()
- {
- if (defined('HHVM_VERSION')) $this->markTestSkipped('Not supported on HHVM (final chunk will not be emitted)');
-
- $inflate = StreamFilter\fun('zlib.inflate');
-
- $expected = str_repeat('hello', 10);
- $bytes = gzdeflate($expected);
-
- $ret = '';
- foreach (str_split($bytes, 2) as $chunk) {
- $ret .= $inflate($chunk);
- }
- $ret .= $inflate();
-
- $this->assertEquals($expected, $ret);
- }
-}
diff --git a/vendor/composer/ClassLoader.php b/vendor/composer/ClassLoader.php
index dc02dfb1..afef3fa2 100644
--- a/vendor/composer/ClassLoader.php
+++ b/vendor/composer/ClassLoader.php
@@ -37,57 +37,130 @@ namespace Composer\Autoload;
*
* @author Fabien Potencier
- *
- *
- *
- * @param string $string The string to operate on.
- * @param string $delimiters A list of word separators.
- *
- * @return string The string with all delimeter-separated words capitalized.
- */
- public static function ucwords(string $string, string $delimiters = " \n\t\r\0\x0B-") : string
- {
- return ucwords($string, $delimiters);
- }
-
- /**
- * Clears Inflectors inflected value caches, and resets the inflection
- * rules to the initial values.
- */
- public static function reset() : void
- {
- if (empty(self::$initialState)) {
- self::$initialState = get_class_vars('Inflector');
-
- return;
- }
-
- foreach (self::$initialState as $key => $val) {
- if ($key !== 'initialState') {
- self::${$key} = $val;
- }
- }
- }
-
- /**
- * Adds custom inflection $rules, of either 'plural' or 'singular' $type.
- *
- * ### Usage:
- *
- * {{{
- * Inflector::rules('plural', array('/^(inflect)or$/i' => '\1ables'));
- * Inflector::rules('plural', array(
- * 'rules' => array('/^(inflect)ors$/i' => '\1ables'),
- * 'uninflected' => array('dontinflectme'),
- * 'irregular' => array('red' => 'redlings')
- * ));
- * }}}
- *
- * @param string $type The type of inflection, either 'plural' or 'singular'
- * @param array|iterable $rules An array of rules to be added.
- * @param boolean $reset If true, will unset default inflections for all
- * new rules that are being defined in $rules.
- *
- * @return void
- */
- public static function rules(string $type, iterable $rules, bool $reset = false) : void
- {
- foreach ($rules as $rule => $pattern) {
- if ( ! is_array($pattern)) {
- continue;
- }
-
- if ($reset) {
- self::${$type}[$rule] = $pattern;
- } else {
- self::${$type}[$rule] = ($rule === 'uninflected')
- ? array_merge($pattern, self::${$type}[$rule])
- : $pattern + self::${$type}[$rule];
- }
-
- unset($rules[$rule], self::${$type}['cache' . ucfirst($rule)]);
-
- if (isset(self::${$type}['merged'][$rule])) {
- unset(self::${$type}['merged'][$rule]);
- }
-
- if ($type === 'plural') {
- self::$cache['pluralize'] = self::$cache['tableize'] = array();
- } elseif ($type === 'singular') {
- self::$cache['singularize'] = array();
- }
- }
-
- self::${$type}['rules'] = $rules + self::${$type}['rules'];
- }
-
- /**
- * Returns a word in plural form.
- *
- * @param string $word The word in singular form.
- *
- * @return string The word in plural form.
- */
- public static function pluralize(string $word) : string
- {
- if (isset(self::$cache['pluralize'][$word])) {
- return self::$cache['pluralize'][$word];
- }
-
- if (!isset(self::$plural['merged']['irregular'])) {
- self::$plural['merged']['irregular'] = self::$plural['irregular'];
- }
-
- if (!isset(self::$plural['merged']['uninflected'])) {
- self::$plural['merged']['uninflected'] = array_merge(self::$plural['uninflected'], self::$uninflected);
- }
-
- if (!isset(self::$plural['cacheUninflected']) || !isset(self::$plural['cacheIrregular'])) {
- self::$plural['cacheUninflected'] = '(?:' . implode('|', self::$plural['merged']['uninflected']) . ')';
- self::$plural['cacheIrregular'] = '(?:' . implode('|', array_keys(self::$plural['merged']['irregular'])) . ')';
- }
-
- if (preg_match('/(.*)\\b(' . self::$plural['cacheIrregular'] . ')$/i', $word, $regs)) {
- self::$cache['pluralize'][$word] = $regs[1] . $word[0] . substr(self::$plural['merged']['irregular'][strtolower($regs[2])], 1);
-
- return self::$cache['pluralize'][$word];
- }
-
- if (preg_match('/^(' . self::$plural['cacheUninflected'] . ')$/i', $word, $regs)) {
- self::$cache['pluralize'][$word] = $word;
-
- return $word;
- }
-
- foreach (self::$plural['rules'] as $rule => $replacement) {
- if (preg_match($rule, $word)) {
- self::$cache['pluralize'][$word] = preg_replace($rule, $replacement, $word);
-
- return self::$cache['pluralize'][$word];
- }
- }
- }
-
- /**
- * Returns a word in singular form.
- *
- * @param string $word The word in plural form.
- *
- * @return string The word in singular form.
- */
- public static function singularize(string $word) : string
- {
- if (isset(self::$cache['singularize'][$word])) {
- return self::$cache['singularize'][$word];
- }
-
- if (!isset(self::$singular['merged']['uninflected'])) {
- self::$singular['merged']['uninflected'] = array_merge(
- self::$singular['uninflected'],
- self::$uninflected
- );
- }
-
- if (!isset(self::$singular['merged']['irregular'])) {
- self::$singular['merged']['irregular'] = array_merge(
- self::$singular['irregular'],
- array_flip(self::$plural['irregular'])
- );
- }
-
- if (!isset(self::$singular['cacheUninflected']) || !isset(self::$singular['cacheIrregular'])) {
- self::$singular['cacheUninflected'] = '(?:' . implode('|', self::$singular['merged']['uninflected']) . ')';
- self::$singular['cacheIrregular'] = '(?:' . implode('|', array_keys(self::$singular['merged']['irregular'])) . ')';
- }
-
- if (preg_match('/(.*)\\b(' . self::$singular['cacheIrregular'] . ')$/i', $word, $regs)) {
- self::$cache['singularize'][$word] = $regs[1] . $word[0] . substr(self::$singular['merged']['irregular'][strtolower($regs[2])], 1);
-
- return self::$cache['singularize'][$word];
- }
-
- if (preg_match('/^(' . self::$singular['cacheUninflected'] . ')$/i', $word, $regs)) {
- self::$cache['singularize'][$word] = $word;
-
- return $word;
- }
-
- foreach (self::$singular['rules'] as $rule => $replacement) {
- if (preg_match($rule, $word)) {
- self::$cache['singularize'][$word] = preg_replace($rule, $replacement, $word);
-
- return self::$cache['singularize'][$word];
- }
- }
-
- self::$cache['singularize'][$word] = $word;
-
- return $word;
- }
-}
diff --git a/vendor/doctrine/inflector/lib/Doctrine/Inflector/CachedWordInflector.php b/vendor/doctrine/inflector/lib/Doctrine/Inflector/CachedWordInflector.php
new file mode 100644
index 00000000..2d529087
--- /dev/null
+++ b/vendor/doctrine/inflector/lib/Doctrine/Inflector/CachedWordInflector.php
@@ -0,0 +1,24 @@
+wordInflector = $wordInflector;
+ }
+
+ public function inflect(string $word): string
+ {
+ return $this->cache[$word] ?? $this->cache[$word] = $this->wordInflector->inflect($word);
+ }
+}
diff --git a/vendor/doctrine/inflector/lib/Doctrine/Inflector/GenericLanguageInflectorFactory.php b/vendor/doctrine/inflector/lib/Doctrine/Inflector/GenericLanguageInflectorFactory.php
new file mode 100644
index 00000000..166061d2
--- /dev/null
+++ b/vendor/doctrine/inflector/lib/Doctrine/Inflector/GenericLanguageInflectorFactory.php
@@ -0,0 +1,66 @@
+singularRulesets[] = $this->getSingularRuleset();
+ $this->pluralRulesets[] = $this->getPluralRuleset();
+ }
+
+ final public function build(): Inflector
+ {
+ return new Inflector(
+ new CachedWordInflector(new RulesetInflector(
+ ...$this->singularRulesets
+ )),
+ new CachedWordInflector(new RulesetInflector(
+ ...$this->pluralRulesets
+ ))
+ );
+ }
+
+ final public function withSingularRules(?Ruleset $singularRules, bool $reset = false): LanguageInflectorFactory
+ {
+ if ($reset) {
+ $this->singularRulesets = [];
+ }
+
+ if ($singularRules instanceof Ruleset) {
+ array_unshift($this->singularRulesets, $singularRules);
+ }
+
+ return $this;
+ }
+
+ final public function withPluralRules(?Ruleset $pluralRules, bool $reset = false): LanguageInflectorFactory
+ {
+ if ($reset) {
+ $this->pluralRulesets = [];
+ }
+
+ if ($pluralRules instanceof Ruleset) {
+ array_unshift($this->pluralRulesets, $pluralRules);
+ }
+
+ return $this;
+ }
+
+ abstract protected function getSingularRuleset(): Ruleset;
+
+ abstract protected function getPluralRuleset(): Ruleset;
+}
diff --git a/vendor/doctrine/inflector/lib/Doctrine/Inflector/Inflector.php b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Inflector.php
new file mode 100644
index 00000000..610a4cf4
--- /dev/null
+++ b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Inflector.php
@@ -0,0 +1,507 @@
+ 'A',
+ 'Ã' => 'A',
+ 'Â' => 'A',
+ 'Ã' => 'A',
+ 'Ä' => 'Ae',
+ 'Æ' => 'Ae',
+ 'Ã…' => 'Aa',
+ 'æ' => 'a',
+ 'Ç' => 'C',
+ 'È' => 'E',
+ 'É' => 'E',
+ 'Ê' => 'E',
+ 'Ë' => 'E',
+ 'Ì' => 'I',
+ 'Ã' => 'I',
+ 'ÃŽ' => 'I',
+ 'Ã' => 'I',
+ 'Ñ' => 'N',
+ 'Ã’' => 'O',
+ 'Ó' => 'O',
+ 'Ô' => 'O',
+ 'Õ' => 'O',
+ 'Ö' => 'Oe',
+ 'Ù' => 'U',
+ 'Ú' => 'U',
+ 'Û' => 'U',
+ 'Ü' => 'Ue',
+ 'Ã' => 'Y',
+ 'ß' => 'ss',
+ 'Ã ' => 'a',
+ 'á' => 'a',
+ 'â' => 'a',
+ 'ã' => 'a',
+ 'ä' => 'ae',
+ 'Ã¥' => 'aa',
+ 'ç' => 'c',
+ 'è' => 'e',
+ 'é' => 'e',
+ 'ê' => 'e',
+ 'ë' => 'e',
+ 'ì' => 'i',
+ 'Ã' => 'i',
+ 'î' => 'i',
+ 'ï' => 'i',
+ 'ñ' => 'n',
+ 'ò' => 'o',
+ 'ó' => 'o',
+ 'ô' => 'o',
+ 'õ' => 'o',
+ 'ö' => 'oe',
+ 'ù' => 'u',
+ 'ú' => 'u',
+ 'û' => 'u',
+ 'ü' => 'ue',
+ 'ý' => 'y',
+ 'ÿ' => 'y',
+ 'Ä€' => 'A',
+ 'Ä' => 'a',
+ 'Ä‚' => 'A',
+ 'ă' => 'a',
+ 'Ä„' => 'A',
+ 'Ä…' => 'a',
+ 'Ć' => 'C',
+ 'ć' => 'c',
+ 'Ĉ' => 'C',
+ 'ĉ' => 'c',
+ 'ÄŠ' => 'C',
+ 'Ä‹' => 'c',
+ 'Č' => 'C',
+ 'Ä' => 'c',
+ 'ÄŽ' => 'D',
+ 'Ä' => 'd',
+ 'Ä' => 'D',
+ 'Ä‘' => 'd',
+ 'Ä’' => 'E',
+ 'Ä“' => 'e',
+ 'Ä”' => 'E',
+ 'Ä•' => 'e',
+ 'Ä–' => 'E',
+ 'Ä—' => 'e',
+ 'Ę' => 'E',
+ 'Ä™' => 'e',
+ 'Äš' => 'E',
+ 'Ä›' => 'e',
+ 'Ĝ' => 'G',
+ 'Ä' => 'g',
+ 'Äž' => 'G',
+ 'ÄŸ' => 'g',
+ 'Ä ' => 'G',
+ 'Ä¡' => 'g',
+ 'Ä¢' => 'G',
+ 'Ä£' => 'g',
+ 'Ĥ' => 'H',
+ 'Ä¥' => 'h',
+ 'Ħ' => 'H',
+ 'ħ' => 'h',
+ 'Ĩ' => 'I',
+ 'Ä©' => 'i',
+ 'Ī' => 'I',
+ 'Ä«' => 'i',
+ 'Ĭ' => 'I',
+ 'Ä' => 'i',
+ 'Ä®' => 'I',
+ 'į' => 'i',
+ 'Ä°' => 'I',
+ 'ı' => 'i',
+ 'IJ' => 'IJ',
+ 'ij' => 'ij',
+ 'Ä´' => 'J',
+ 'ĵ' => 'j',
+ 'Ķ' => 'K',
+ 'Ä·' => 'k',
+ 'ĸ' => 'k',
+ 'Ĺ' => 'L',
+ 'ĺ' => 'l',
+ 'Ä»' => 'L',
+ 'ļ' => 'l',
+ 'Ľ' => 'L',
+ 'ľ' => 'l',
+ 'Ä¿' => 'L',
+ 'Å€' => 'l',
+ 'Å' => 'L',
+ 'Å‚' => 'l',
+ 'Ń' => 'N',
+ 'Å„' => 'n',
+ 'Å…' => 'N',
+ 'ņ' => 'n',
+ 'Ň' => 'N',
+ 'ň' => 'n',
+ 'ʼn' => 'N',
+ 'ÅŠ' => 'n',
+ 'Å‹' => 'N',
+ 'Ō' => 'O',
+ 'Å' => 'o',
+ 'ÅŽ' => 'O',
+ 'Å' => 'o',
+ 'Å' => 'O',
+ 'Å‘' => 'o',
+ 'Å’' => 'OE',
+ 'Å“' => 'oe',
+ 'Ø' => 'O',
+ 'ø' => 'o',
+ 'Å”' => 'R',
+ 'Å•' => 'r',
+ 'Å–' => 'R',
+ 'Å—' => 'r',
+ 'Ř' => 'R',
+ 'Å™' => 'r',
+ 'Åš' => 'S',
+ 'Å›' => 's',
+ 'Ŝ' => 'S',
+ 'Å' => 's',
+ 'Åž' => 'S',
+ 'ÅŸ' => 's',
+ 'Å ' => 'S',
+ 'Å¡' => 's',
+ 'Å¢' => 'T',
+ 'Å£' => 't',
+ 'Ť' => 'T',
+ 'Å¥' => 't',
+ 'Ŧ' => 'T',
+ 'ŧ' => 't',
+ 'Ũ' => 'U',
+ 'Å©' => 'u',
+ 'Ū' => 'U',
+ 'Å«' => 'u',
+ 'Ŭ' => 'U',
+ 'Å' => 'u',
+ 'Å®' => 'U',
+ 'ů' => 'u',
+ 'Å°' => 'U',
+ 'ű' => 'u',
+ 'Ų' => 'U',
+ 'ų' => 'u',
+ 'Å´' => 'W',
+ 'ŵ' => 'w',
+ 'Ŷ' => 'Y',
+ 'Å·' => 'y',
+ 'Ÿ' => 'Y',
+ 'Ź' => 'Z',
+ 'ź' => 'z',
+ 'Å»' => 'Z',
+ 'ż' => 'z',
+ 'Ž' => 'Z',
+ 'ž' => 'z',
+ 'Å¿' => 's',
+ '€' => 'E',
+ '£' => '',
+ ];
+
+ /** @var WordInflector */
+ private $singularizer;
+
+ /** @var WordInflector */
+ private $pluralizer;
+
+ public function __construct(WordInflector $singularizer, WordInflector $pluralizer)
+ {
+ $this->singularizer = $singularizer;
+ $this->pluralizer = $pluralizer;
+ }
+
+ /**
+ * Converts a word into the format for a Doctrine table name. Converts 'ModelName' to 'model_name'.
+ */
+ public function tableize(string $word): string
+ {
+ $tableized = preg_replace('~(?<=\\w)([A-Z])~u', '_$1', $word);
+
+ if ($tableized === null) {
+ throw new RuntimeException(sprintf(
+ 'preg_replace returned null for value "%s"',
+ $word
+ ));
+ }
+
+ return mb_strtolower($tableized);
+ }
+
+ /**
+ * Converts a word into the format for a Doctrine class name. Converts 'table_name' to 'TableName'.
+ */
+ public function classify(string $word): string
+ {
+ return str_replace([' ', '_', '-'], '', ucwords($word, ' _-'));
+ }
+
+ /**
+ * Camelizes a word. This uses the classify() method and turns the first character to lowercase.
+ */
+ public function camelize(string $word): string
+ {
+ return lcfirst($this->classify($word));
+ }
+
+ /**
+ * Uppercases words with configurable delimiters between words.
+ *
+ * Takes a string and capitalizes all of the words, like PHP's built-in
+ * ucwords function. This extends that behavior, however, by allowing the
+ * word delimiters to be configured, rather than only separating on
+ * whitespace.
+ *
+ * Here is an example:
+ *
+ * capitalize($string);
+ * // Top-O-The-Morning To All_of_you!
+ *
+ * echo $inflector->capitalize($string, '-_ ');
+ * // Top-O-The-Morning To All_Of_You!
+ * ?>
+ *
+ *
+ * @param string $string The string to operate on.
+ * @param string $delimiters A list of word separators.
+ *
+ * @return string The string with all delimiter-separated words capitalized.
+ */
+ public function capitalize(string $string, string $delimiters = " \n\t\r\0\x0B-"): string
+ {
+ return ucwords($string, $delimiters);
+ }
+
+ /**
+ * Checks if the given string seems like it has utf8 characters in it.
+ *
+ * @param string $string The string to check for utf8 characters in.
+ */
+ public function seemsUtf8(string $string): bool
+ {
+ for ($i = 0; $i < strlen($string); $i++) {
+ if (ord($string[$i]) < 0x80) {
+ continue; // 0bbbbbbb
+ }
+
+ if ((ord($string[$i]) & 0xE0) === 0xC0) {
+ $n = 1; // 110bbbbb
+ } elseif ((ord($string[$i]) & 0xF0) === 0xE0) {
+ $n = 2; // 1110bbbb
+ } elseif ((ord($string[$i]) & 0xF8) === 0xF0) {
+ $n = 3; // 11110bbb
+ } elseif ((ord($string[$i]) & 0xFC) === 0xF8) {
+ $n = 4; // 111110bb
+ } elseif ((ord($string[$i]) & 0xFE) === 0xFC) {
+ $n = 5; // 1111110b
+ } else {
+ return false; // Does not match any model
+ }
+
+ for ($j = 0; $j < $n; $j++) { // n bytes matching 10bbbbbb follow ?
+ if (++$i === strlen($string) || ((ord($string[$i]) & 0xC0) !== 0x80)) {
+ return false;
+ }
+ }
+ }
+
+ return true;
+ }
+
+ /**
+ * Remove any illegal characters, accents, etc.
+ *
+ * @param string $string String to unaccent
+ *
+ * @return string Unaccented string
+ */
+ public function unaccent(string $string): string
+ {
+ if (preg_match('/[\x80-\xff]/', $string) === false) {
+ return $string;
+ }
+
+ if ($this->seemsUtf8($string)) {
+ $string = strtr($string, self::ACCENTED_CHARACTERS);
+ } else {
+ $characters = [];
+
+ // Assume ISO-8859-1 if not UTF-8
+ $characters['in'] =
+ chr(128)
+ . chr(131)
+ . chr(138)
+ . chr(142)
+ . chr(154)
+ . chr(158)
+ . chr(159)
+ . chr(162)
+ . chr(165)
+ . chr(181)
+ . chr(192)
+ . chr(193)
+ . chr(194)
+ . chr(195)
+ . chr(196)
+ . chr(197)
+ . chr(199)
+ . chr(200)
+ . chr(201)
+ . chr(202)
+ . chr(203)
+ . chr(204)
+ . chr(205)
+ . chr(206)
+ . chr(207)
+ . chr(209)
+ . chr(210)
+ . chr(211)
+ . chr(212)
+ . chr(213)
+ . chr(214)
+ . chr(216)
+ . chr(217)
+ . chr(218)
+ . chr(219)
+ . chr(220)
+ . chr(221)
+ . chr(224)
+ . chr(225)
+ . chr(226)
+ . chr(227)
+ . chr(228)
+ . chr(229)
+ . chr(231)
+ . chr(232)
+ . chr(233)
+ . chr(234)
+ . chr(235)
+ . chr(236)
+ . chr(237)
+ . chr(238)
+ . chr(239)
+ . chr(241)
+ . chr(242)
+ . chr(243)
+ . chr(244)
+ . chr(245)
+ . chr(246)
+ . chr(248)
+ . chr(249)
+ . chr(250)
+ . chr(251)
+ . chr(252)
+ . chr(253)
+ . chr(255);
+
+ $characters['out'] = 'EfSZszYcYuAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy';
+
+ $string = strtr($string, $characters['in'], $characters['out']);
+
+ $doubleChars = [];
+
+ $doubleChars['in'] = [
+ chr(140),
+ chr(156),
+ chr(198),
+ chr(208),
+ chr(222),
+ chr(223),
+ chr(230),
+ chr(240),
+ chr(254),
+ ];
+
+ $doubleChars['out'] = ['OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th'];
+
+ $string = str_replace($doubleChars['in'], $doubleChars['out'], $string);
+ }
+
+ return $string;
+ }
+
+ /**
+ * Convert any passed string to a url friendly string.
+ * Converts 'My first blog post' to 'my-first-blog-post'
+ *
+ * @param string $string String to urlize.
+ *
+ * @return string Urlized string.
+ */
+ public function urlize(string $string): string
+ {
+ // Remove all non url friendly characters with the unaccent function
+ $unaccented = $this->unaccent($string);
+
+ if (function_exists('mb_strtolower')) {
+ $lowered = mb_strtolower($unaccented);
+ } else {
+ $lowered = strtolower($unaccented);
+ }
+
+ $replacements = [
+ '/\W/' => ' ',
+ '/([A-Z]+)([A-Z][a-z])/' => '\1_\2',
+ '/([a-z\d])([A-Z])/' => '\1_\2',
+ '/[^A-Z^a-z^0-9^\/]+/' => '-',
+ ];
+
+ $urlized = $lowered;
+
+ foreach ($replacements as $pattern => $replacement) {
+ $replaced = preg_replace($pattern, $replacement, $urlized);
+
+ if ($replaced === null) {
+ throw new RuntimeException(sprintf(
+ 'preg_replace returned null for value "%s"',
+ $urlized
+ ));
+ }
+
+ $urlized = $replaced;
+ }
+
+ return trim($urlized, '-');
+ }
+
+ /**
+ * Returns a word in singular form.
+ *
+ * @param string $word The word in plural form.
+ *
+ * @return string The word in singular form.
+ */
+ public function singularize(string $word): string
+ {
+ return $this->singularizer->inflect($word);
+ }
+
+ /**
+ * Returns a word in plural form.
+ *
+ * @param string $word The word in singular form.
+ *
+ * @return string The word in plural form.
+ */
+ public function pluralize(string $word): string
+ {
+ return $this->pluralizer->inflect($word);
+ }
+}
diff --git a/vendor/doctrine/inflector/lib/Doctrine/Inflector/InflectorFactory.php b/vendor/doctrine/inflector/lib/Doctrine/Inflector/InflectorFactory.php
new file mode 100644
index 00000000..a0740a74
--- /dev/null
+++ b/vendor/doctrine/inflector/lib/Doctrine/Inflector/InflectorFactory.php
@@ -0,0 +1,52 @@
+getFlippedSubstitutions()
+ );
+ }
+
+ public static function getPluralRuleset(): Ruleset
+ {
+ return new Ruleset(
+ new Transformations(...Inflectible::getPlural()),
+ new Patterns(...Uninflected::getPlural()),
+ new Substitutions(...Inflectible::getIrregular())
+ );
+ }
+}
diff --git a/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/English/Uninflected.php b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/English/Uninflected.php
new file mode 100644
index 00000000..e2656cc4
--- /dev/null
+++ b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/English/Uninflected.php
@@ -0,0 +1,193 @@
+getFlippedSubstitutions()
+ );
+ }
+
+ public static function getPluralRuleset(): Ruleset
+ {
+ return new Ruleset(
+ new Transformations(...Inflectible::getPlural()),
+ new Patterns(...Uninflected::getPlural()),
+ new Substitutions(...Inflectible::getIrregular())
+ );
+ }
+}
diff --git a/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/French/Uninflected.php b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/French/Uninflected.php
new file mode 100644
index 00000000..3cf2444a
--- /dev/null
+++ b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/French/Uninflected.php
@@ -0,0 +1,34 @@
+getFlippedSubstitutions()
+ );
+ }
+
+ public static function getPluralRuleset(): Ruleset
+ {
+ return new Ruleset(
+ new Transformations(...Inflectible::getPlural()),
+ new Patterns(...Uninflected::getPlural()),
+ new Substitutions(...Inflectible::getIrregular())
+ );
+ }
+}
diff --git a/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/NorwegianBokmal/Uninflected.php b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/NorwegianBokmal/Uninflected.php
new file mode 100644
index 00000000..5d878c6d
--- /dev/null
+++ b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/NorwegianBokmal/Uninflected.php
@@ -0,0 +1,36 @@
+pattern = $pattern;
+
+ if (isset($this->pattern[0]) && $this->pattern[0] === '/') {
+ $this->regex = $this->pattern;
+ } else {
+ $this->regex = '/' . $this->pattern . '/i';
+ }
+ }
+
+ public function getPattern(): string
+ {
+ return $this->pattern;
+ }
+
+ public function getRegex(): string
+ {
+ return $this->regex;
+ }
+
+ public function matches(string $word): bool
+ {
+ return preg_match($this->getRegex(), $word) === 1;
+ }
+}
diff --git a/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Patterns.php b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Patterns.php
new file mode 100644
index 00000000..e8d45cb7
--- /dev/null
+++ b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Patterns.php
@@ -0,0 +1,34 @@
+patterns = $patterns;
+
+ $patterns = array_map(static function (Pattern $pattern): string {
+ return $pattern->getPattern();
+ }, $this->patterns);
+
+ $this->regex = '/^(?:' . implode('|', $patterns) . ')$/i';
+ }
+
+ public function matches(string $word): bool
+ {
+ return preg_match($this->regex, $word, $regs) === 1;
+ }
+}
diff --git a/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Portuguese/Inflectible.php b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Portuguese/Inflectible.php
new file mode 100644
index 00000000..95564d49
--- /dev/null
+++ b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Portuguese/Inflectible.php
@@ -0,0 +1,104 @@
+getFlippedSubstitutions()
+ );
+ }
+
+ public static function getPluralRuleset(): Ruleset
+ {
+ return new Ruleset(
+ new Transformations(...Inflectible::getPlural()),
+ new Patterns(...Uninflected::getPlural()),
+ new Substitutions(...Inflectible::getIrregular())
+ );
+ }
+}
diff --git a/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Portuguese/Uninflected.php b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Portuguese/Uninflected.php
new file mode 100644
index 00000000..58c34f9b
--- /dev/null
+++ b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Portuguese/Uninflected.php
@@ -0,0 +1,38 @@
+regular = $regular;
+ $this->uninflected = $uninflected;
+ $this->irregular = $irregular;
+ }
+
+ public function getRegular(): Transformations
+ {
+ return $this->regular;
+ }
+
+ public function getUninflected(): Patterns
+ {
+ return $this->uninflected;
+ }
+
+ public function getIrregular(): Substitutions
+ {
+ return $this->irregular;
+ }
+}
diff --git a/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Spanish/Inflectible.php b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Spanish/Inflectible.php
new file mode 100644
index 00000000..c6862fa4
--- /dev/null
+++ b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Spanish/Inflectible.php
@@ -0,0 +1,53 @@
+getFlippedSubstitutions()
+ );
+ }
+
+ public static function getPluralRuleset(): Ruleset
+ {
+ return new Ruleset(
+ new Transformations(...Inflectible::getPlural()),
+ new Patterns(...Uninflected::getPlural()),
+ new Substitutions(...Inflectible::getIrregular())
+ );
+ }
+}
diff --git a/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Spanish/Uninflected.php b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Spanish/Uninflected.php
new file mode 100644
index 00000000..c743b393
--- /dev/null
+++ b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Spanish/Uninflected.php
@@ -0,0 +1,36 @@
+from = $from;
+ $this->to = $to;
+ }
+
+ public function getFrom(): Word
+ {
+ return $this->from;
+ }
+
+ public function getTo(): Word
+ {
+ return $this->to;
+ }
+}
diff --git a/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Substitutions.php b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Substitutions.php
new file mode 100644
index 00000000..17ee2961
--- /dev/null
+++ b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Substitutions.php
@@ -0,0 +1,57 @@
+substitutions[$substitution->getFrom()->getWord()] = $substitution;
+ }
+ }
+
+ public function getFlippedSubstitutions(): Substitutions
+ {
+ $substitutions = [];
+
+ foreach ($this->substitutions as $substitution) {
+ $substitutions[] = new Substitution(
+ $substitution->getTo(),
+ $substitution->getFrom()
+ );
+ }
+
+ return new Substitutions(...$substitutions);
+ }
+
+ public function inflect(string $word): string
+ {
+ $lowerWord = strtolower($word);
+
+ if (isset($this->substitutions[$lowerWord])) {
+ $firstLetterUppercase = $lowerWord[0] !== $word[0];
+
+ $toWord = $this->substitutions[$lowerWord]->getTo()->getWord();
+
+ if ($firstLetterUppercase) {
+ return strtoupper($toWord[0]) . substr($toWord, 1);
+ }
+
+ return $toWord;
+ }
+
+ return $word;
+ }
+}
diff --git a/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Transformation.php b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Transformation.php
new file mode 100644
index 00000000..30dcd594
--- /dev/null
+++ b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Transformation.php
@@ -0,0 +1,39 @@
+pattern = $pattern;
+ $this->replacement = $replacement;
+ }
+
+ public function getPattern(): Pattern
+ {
+ return $this->pattern;
+ }
+
+ public function getReplacement(): string
+ {
+ return $this->replacement;
+ }
+
+ public function inflect(string $word): string
+ {
+ return (string) preg_replace($this->pattern->getRegex(), $this->replacement, $word);
+ }
+}
diff --git a/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Transformations.php b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Transformations.php
new file mode 100644
index 00000000..b6a48fa8
--- /dev/null
+++ b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Transformations.php
@@ -0,0 +1,29 @@
+transformations = $transformations;
+ }
+
+ public function inflect(string $word): string
+ {
+ foreach ($this->transformations as $transformation) {
+ if ($transformation->getPattern()->matches($word)) {
+ return $transformation->inflect($word);
+ }
+ }
+
+ return $word;
+ }
+}
diff --git a/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Turkish/Inflectible.php b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Turkish/Inflectible.php
new file mode 100644
index 00000000..d7b7064c
--- /dev/null
+++ b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Turkish/Inflectible.php
@@ -0,0 +1,40 @@
+getFlippedSubstitutions()
+ );
+ }
+
+ public static function getPluralRuleset(): Ruleset
+ {
+ return new Ruleset(
+ new Transformations(...Inflectible::getPlural()),
+ new Patterns(...Uninflected::getPlural()),
+ new Substitutions(...Inflectible::getIrregular())
+ );
+ }
+}
diff --git a/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Turkish/Uninflected.php b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Turkish/Uninflected.php
new file mode 100644
index 00000000..a75d2486
--- /dev/null
+++ b/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Turkish/Uninflected.php
@@ -0,0 +1,36 @@
+word = $word;
+ }
+
+ public function getWord(): string
+ {
+ return $this->word;
+ }
+}
diff --git a/vendor/doctrine/inflector/lib/Doctrine/Inflector/RulesetInflector.php b/vendor/doctrine/inflector/lib/Doctrine/Inflector/RulesetInflector.php
new file mode 100644
index 00000000..12b2ed5b
--- /dev/null
+++ b/vendor/doctrine/inflector/lib/Doctrine/Inflector/RulesetInflector.php
@@ -0,0 +1,56 @@
+rulesets = array_merge([$ruleset], $rulesets);
+ }
+
+ public function inflect(string $word): string
+ {
+ if ($word === '') {
+ return '';
+ }
+
+ foreach ($this->rulesets as $ruleset) {
+ if ($ruleset->getUninflected()->matches($word)) {
+ return $word;
+ }
+
+ $inflected = $ruleset->getIrregular()->inflect($word);
+
+ if ($inflected !== $word) {
+ return $inflected;
+ }
+
+ $inflected = $ruleset->getRegular()->inflect($word);
+
+ if ($inflected !== $word) {
+ return $inflected;
+ }
+ }
+
+ return $word;
+ }
+}
diff --git a/vendor/doctrine/inflector/lib/Doctrine/Inflector/WordInflector.php b/vendor/doctrine/inflector/lib/Doctrine/Inflector/WordInflector.php
new file mode 100644
index 00000000..b88b1d69
--- /dev/null
+++ b/vendor/doctrine/inflector/lib/Doctrine/Inflector/WordInflector.php
@@ -0,0 +1,10 @@
+
+
\n", $text);
- }
- else
- {
- $text = preg_replace('/(?:[ ][ ]+|[ ]*\\\\)\n/', "
\n", $text);
- $text = str_replace(" \n", "\n", $text);
- }
-
- return $text;
- }
-
- #
- # Handlers
- #
-
- protected function element(array $Element)
- {
- if ($this->safeMode)
- {
- $Element = $this->sanitiseElement($Element);
- }
-
- $markup = '<'.$Element['name'];
-
- if (isset($Element['attributes']))
- {
- foreach ($Element['attributes'] as $name => $value)
- {
- if ($value === null)
- {
- continue;
- }
-
- $markup .= ' '.$name.'="'.self::escape($value).'"';
- }
- }
-
- if (isset($Element['text']))
- {
- $markup .= '>';
-
- if (!isset($Element['nonNestables']))
- {
- $Element['nonNestables'] = array();
- }
-
- if (isset($Element['handler']))
- {
- $markup .= $this->{$Element['handler']}($Element['text'], $Element['nonNestables']);
- }
- else
- {
- $markup .= self::escape($Element['text'], true);
- }
-
- $markup .= ''.$Element['name'].'>';
- }
- else
- {
- $markup .= ' />';
- }
-
- return $markup;
- }
-
- protected function elements(array $Elements)
- {
- $markup = '';
-
- foreach ($Elements as $Element)
- {
- $markup .= "\n" . $this->element($Element);
- }
-
- $markup .= "\n";
-
- return $markup;
- }
-
- # ~
-
- protected function li($lines)
- {
- $markup = $this->lines($lines);
-
- $trimmedMarkup = trim($markup);
-
- if ( ! in_array('', $lines) and substr($trimmedMarkup, 0, 3) === '
* $values = array();
* $evenValidator = function ($digit) {
- * return $digit % 2 === 0;
+ * return $digit % 2 === 0;
* };
* for ($i=0; $i < 10; $i++) {
- * $values []= $faker->valid($evenValidator)->randomDigit;
+ * $values []= $faker->valid($evenValidator)->randomDigit;
* }
* print_r($values); // [0, 4, 8, 4, 2, 6, 0, 8, 8, 6]
*
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/Biased.php b/vendor/fzaninotto/faker/src/Faker/Provider/Biased.php
index b9e3f082..d37dceff 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/Biased.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/Biased.php
@@ -26,7 +26,7 @@ class Biased extends Base
$y = mt_rand() / (mt_getrandmax() + 1);
} while (call_user_func($function, $x) < $y);
- return floor($x * ($max - $min + 1) + $min);
+ return (int) floor($x * ($max - $min + 1) + $min);
}
/**
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/Color.php b/vendor/fzaninotto/faker/src/Faker/Provider/Color.php
index 0eb5cb9a..209d7228 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/Color.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/Color.php
@@ -113,4 +113,31 @@ class Color extends Base
{
return static::randomElement(static::$allColorNames);
}
+
+ /**
+ * @example '340,50,20'
+ * @return string
+ */
+ public static function hslColor()
+ {
+ return sprintf(
+ '%s,%s,%s',
+ static::numberBetween(0, 360),
+ static::numberBetween(0, 100),
+ static::numberBetween(0, 100)
+ );
+ }
+
+ /**
+ * @example array(340, 50, 20)
+ * @return array
+ */
+ public static function hslColorAsArray()
+ {
+ return array(
+ static::numberBetween(0, 360),
+ static::numberBetween(0, 100),
+ static::numberBetween(0, 100)
+ );
+ }
}
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/Company.php b/vendor/fzaninotto/faker/src/Faker/Provider/Company.php
index 2d11397f..d536d48e 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/Company.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/Company.php
@@ -16,6 +16,8 @@ class Company extends Base
/**
* @example 'Acme Ltd'
+ *
+ * @return string
*/
public function company()
{
@@ -26,6 +28,8 @@ class Company extends Base
/**
* @example 'Ltd'
+ *
+ * @return string
*/
public static function companySuffix()
{
@@ -34,6 +38,8 @@ class Company extends Base
/**
* @example 'Job'
+ *
+ * @return string
*/
public function jobTitle()
{
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/DateTime.php b/vendor/fzaninotto/faker/src/Faker/Provider/DateTime.php
index fb0f474b..bde7f251 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/DateTime.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/DateTime.php
@@ -9,7 +9,7 @@ class DateTime extends Base
protected static $defaultTimezone = null;
/**
- * @param string|float|int $max
+ * @param \DateTime|string|float|int $max
* @return int|false
*/
protected static function getMaxTimestamp($max = 'now')
@@ -147,7 +147,7 @@ class DateTime extends Base
* an interval
* Accepts date string that can be recognized by strtotime().
*
- * @param string $date Defaults to 30 years ago
+ * @param \DateTime|string $date Defaults to 30 years ago
* @param string $interval Defaults to 5 days after
* @param string|null $timezone time zone in which the date time should be set, default to DateTime::$defaultTimezone, if set, otherwise the result of `date_default_timezone_get`
* @example dateTimeInInterval('1999-02-02 11:42:52', '+ 5 days')
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/HtmlLorem.php b/vendor/fzaninotto/faker/src/Faker/Provider/HtmlLorem.php
index b4b2ec16..6219bc89 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/HtmlLorem.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/HtmlLorem.php
@@ -83,14 +83,14 @@ class HtmlLorem extends Base
$this->addRandomAttribute($sibling);
$this->addRandomSubTree($sibling, mt_rand(0, $maxDepth), $maxWidth);
}
- };
+ }
return $root;
}
private function addRandomLeaf(\DOMElement $node)
{
$rand = mt_rand(1, 10);
- switch($rand){
+ switch ($rand) {
case 1:
$this->addRandomP($node);
break;
@@ -172,7 +172,6 @@ class HtmlLorem extends Base
$node = $element->ownerDocument->createElement($h);
$node->appendChild($text);
$element->appendChild($node);
-
}
private function addRandomB(\DOMElement $element, $maxLength = 10)
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/Image.php b/vendor/fzaninotto/faker/src/Faker/Provider/Image.php
index 0458ceb9..14f1b397 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/Image.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/Image.php
@@ -61,7 +61,7 @@ class Image extends Base
*
* @example '/path/to/dir/13b73edae8443990be1aa8f1a483bc27.jpg'
*/
- public static function image($dir = null, $width = 640, $height = 480, $category = null, $fullPath = true, $randomize = true, $word = null)
+ public static function image($dir = null, $width = 640, $height = 480, $category = null, $fullPath = true, $randomize = true, $word = null, $gray = false)
{
$dir = is_null($dir) ? sys_get_temp_dir() : $dir; // GNU/Linux / OS X / Windows compatible
// Validate directory path
@@ -75,7 +75,7 @@ class Image extends Base
$filename = $name .'.jpg';
$filepath = $dir . DIRECTORY_SEPARATOR . $filename;
- $url = static::imageUrl($width, $height, $category, $randomize, $word);
+ $url = static::imageUrl($width, $height, $category, $randomize, $word, $gray);
// save file
if (function_exists('curl_exec')) {
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/Internet.php b/vendor/fzaninotto/faker/src/Faker/Provider/Internet.php
index f299fa2c..2eaa2f6a 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/Internet.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/Internet.php
@@ -175,7 +175,7 @@ class Internet extends Base
}
$words = $this->generator->words($nbWords);
- return join($words, '-');
+ return join('-', $words);
}
/**
@@ -233,7 +233,7 @@ class Internet extends Base
}
$transId = 'Any-Latin; Latin-ASCII; NFD; [:Nonspacing Mark:] Remove; NFC;';
- if (class_exists('Transliterator') && $transliterator = \Transliterator::create($transId)) {
+ if (class_exists('Transliterator', false) && $transliterator = \Transliterator::create($transId)) {
$transString = $transliterator->transliterate($string);
} else {
$transString = static::toAscii($string);
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/Lorem.php b/vendor/fzaninotto/faker/src/Faker/Provider/Lorem.php
index 6356ebfc..b8c6dac2 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/Lorem.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/Lorem.php
@@ -92,7 +92,7 @@ class Lorem extends Base
$words = static::words($nbWords);
$words[0] = ucwords($words[0]);
- return implode($words, ' ') . '.';
+ return implode(' ', $words) . '.';
}
/**
@@ -131,7 +131,7 @@ class Lorem extends Base
$nbSentences = self::randomizeNbElements($nbSentences);
}
- return implode(static::sentences($nbSentences), ' ');
+ return implode(' ', static::sentences($nbSentences));
}
/**
@@ -193,7 +193,7 @@ class Lorem extends Base
$text[count($text) - 1] .= '.';
}
- return implode($text, '');
+ return implode('', $text);
}
protected static function randomizeNbElements($nbElements)
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/Miscellaneous.php b/vendor/fzaninotto/faker/src/Faker/Provider/Miscellaneous.php
index 55586d11..4f669c92 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/Miscellaneous.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/Miscellaneous.php
@@ -61,28 +61,28 @@ class Miscellaneous extends Base
'AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR',
'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE',
'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ',
- 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD',
- 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR',
- 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM',
- 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI',
- 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF',
- 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS',
- 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU',
- 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT',
- 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN',
- 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK',
- 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME',
- 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ',
- 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA',
- 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU',
- 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM',
- 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS',
- 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI',
- 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV',
- 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK',
- 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA',
- 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI',
- 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW',
+ 'BR', 'BS', 'BT', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF',
+ 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU',
+ 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO',
+ 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ',
+ 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG',
+ 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT',
+ 'GU', 'GW', 'GY', 'HK', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE',
+ 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM',
+ 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR',
+ 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS',
+ 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG',
+ 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS',
+ 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE',
+ 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM',
+ 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR',
+ 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW',
+ 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK',
+ 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY',
+ 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM',
+ 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM',
+ 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU',
+ 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW',
);
/**
@@ -202,7 +202,7 @@ class Miscellaneous extends Base
/**
* @link https://en.wikipedia.org/wiki/ISO_4217
- * On date of 2017-07-07
+ * On date of 2019-09-27
*
* With the following exceptions:
* SVC has been replaced by the USD in 2001: https://en.wikipedia.org/wiki/Salvadoran_col%C3%B3n
@@ -218,12 +218,12 @@ class Miscellaneous extends Base
'ILS', 'INR', 'IQD', 'IRR', 'ISK', 'JMD', 'JOD', 'JPY', 'KES', 'KGS',
'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR',
'LRD', 'LSL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP',
- 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO',
+ 'MRU', 'MUR', 'MVR', 'MWK', 'MXN', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO',
'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN',
'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG',
- 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SRD', 'SSP', 'STD', 'SYP', 'SZL',
+ 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SRD', 'SSP', 'STN', 'SYP', 'SZL',
'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TWD', 'TZS', 'UAH',
- 'UGX', 'USD', 'UYU', 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XCD',
+ 'UGX', 'USD', 'UYU', 'UZS', 'VES', 'VND', 'VUV', 'WST', 'XAF', 'XCD',
'XOF', 'XPF', 'YER', 'ZAR', 'ZMW',
);
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/Text.php b/vendor/fzaninotto/faker/src/Faker/Provider/Text.php
index db8c800a..80aa02fc 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/Text.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/Text.php
@@ -21,7 +21,7 @@ abstract class Text extends Base
* @example 'Alice, swallowing down her flamingo, and began by taking the little golden key'
* @param integer $maxNbChars Maximum number of characters the text should contain (minimum: 10)
* @param integer $indexSize Determines how many words are considered for the generation of the next word.
- * The minimum is 1, and it produces the higher level of randomness, although the
+ * The minimum is 1, and it produces a higher level of randomness, although the
* generated text usually doesn't make sense. Higher index sizes (up to 5)
* produce more correct text, at the price of less randomness.
* @return string
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/Uuid.php b/vendor/fzaninotto/faker/src/Faker/Provider/Uuid.php
index ea5ecf1e..ae5fc86d 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/Uuid.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/Uuid.php
@@ -10,7 +10,8 @@ class Uuid extends Base
*/
public static function uuid()
{
- // fix for compatibility with 32bit architecture; seed range restricted to 62bit
+ // fix for compatibility with 32bit architecture; each mt_rand call is restricted to 32bit
+ // two such calls will cause 64bits of randomness regardless of architecture
$seed = mt_rand(0, 2147483647) . '#' . mt_rand(0, 2147483647);
// Hash the seed and convert to a byte array
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/ar_JO/Company.php b/vendor/fzaninotto/faker/src/Faker/Provider/ar_JO/Company.php
index fc10726a..34a1e17b 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/ar_JO/Company.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/ar_JO/Company.php
@@ -45,7 +45,7 @@ class Company extends \Faker\Provider\Company
$result[] = static::randomElement($word);
}
- return join($result, ' ');
+ return join(' ', $result);
}
/**
@@ -58,6 +58,6 @@ class Company extends \Faker\Provider\Company
$result[] = static::randomElement($word);
}
- return join($result, ' ');
+ return join(' ', $result);
}
}
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/ar_SA/Company.php b/vendor/fzaninotto/faker/src/Faker/Provider/ar_SA/Company.php
index 596add89..a02f3274 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/ar_SA/Company.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/ar_SA/Company.php
@@ -47,7 +47,7 @@ class Company extends \Faker\Provider\Company
$result[] = static::randomElement($word);
}
- return join($result, ' ');
+ return join(' ', $result);
}
/**
@@ -60,7 +60,7 @@ class Company extends \Faker\Provider\Company
$result[] = static::randomElement($word);
}
- return join($result, ' ');
+ return join(' ', $result);
}
/**
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/at_AT/Payment.php b/vendor/fzaninotto/faker/src/Faker/Provider/at_AT/Payment.php
index 11792b4e..caf8133b 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/at_AT/Payment.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/at_AT/Payment.php
@@ -24,7 +24,7 @@ class Payment extends \Faker\Provider\Payment
*/
public static function vat($spacedNationalPrefix = true)
{
- $prefix = ($spacedNationalPrefix) ? "AT U" : "ATU";
+ $prefix = $spacedNationalPrefix ? "AT U" : "ATU";
return sprintf("%s%d", $prefix, self::randomNumber(8, true));
}
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/bg_BG/Payment.php b/vendor/fzaninotto/faker/src/Faker/Provider/bg_BG/Payment.php
index a65870b4..b9381693 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/bg_BG/Payment.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/bg_BG/Payment.php
@@ -31,7 +31,7 @@ class Payment extends \Faker\Provider\Payment
*/
public static function vat($spacedNationalPrefix = true)
{
- $prefix = ($spacedNationalPrefix) ? "BG " : "BG";
+ $prefix = $spacedNationalPrefix ? "BG " : "BG";
return sprintf(
"%s%d%d",
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/de_AT/Address.php b/vendor/fzaninotto/faker/src/Faker/Provider/de_AT/Address.php
index 861f6fcd..4a2272ca 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/de_AT/Address.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/de_AT/Address.php
@@ -13,7 +13,18 @@ class Address extends \Faker\Provider\Address
'gasse', 'platz', 'ring', 'straße', 'weg',
);
- protected static $postcode = array('####');
+ // As per https://en.wikipedia.org/wiki/List_of_postal_codes_in_Austria (@todo implement more strict postal code values according to wikipedia)
+ protected static $postcode = array(
+ '1###',
+ '2###',
+ '3###',
+ '4###',
+ '5###',
+ '6###',
+ '7###',
+ '8###',
+ '9###',
+ );
protected static $cityNames = array(
'Allentsteig', 'Altheim', 'Althofen', 'Amstetten', 'Ansfelden', 'Attnang-Puchheim',
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/de_CH/Person.php b/vendor/fzaninotto/faker/src/Faker/Provider/de_CH/Person.php
index afbdb997..ce9493e3 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/de_CH/Person.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/de_CH/Person.php
@@ -86,4 +86,32 @@ class Person extends \Faker\Provider\de_DE\Person
'Wagner', 'Walker', 'Walser', 'Weber', 'Wehrli', 'Weibel', 'Weiss', 'Wenger', 'Wicki', 'Widmer', 'Willi', 'Wirth', 'Wirz', 'Wittwer', 'Wolf', 'Wyss', 'Wüthrich',
'Zaugg', 'Zbinden', 'Zehnder', 'Ziegler', 'Zimmermann', 'Zwahlen', 'Zürcher',
);
+
+ /**
+ * Generates a valid random AVS13 (swiss social security) number
+ *
+ * This function acts as a localized alias for the function defined in the
+ * fr_CH provider. In the german-speaking part of Switzerland, the AVS13
+ * number is generally known as AHV13.
+ *
+ * @see \Faker\Provider\fr_CH\Person::avs13()
+ * @return string
+ */
+ public static function ahv13()
+ {
+ return \Faker\Provider\fr_CH\Person::avs13();
+ }
+
+ /**
+ * Generates a valid random AVS13 (swiss social security) number
+ *
+ * This function acts as an alias for the function defined in the fr_CH provider.
+ *
+ * @see \Faker\Provider\fr_CH\Person::avs13()
+ * @return string
+ */
+ public static function avs13()
+ {
+ return \Faker\Provider\fr_CH\Person::avs13();
+ }
}
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/de_DE/Address.php b/vendor/fzaninotto/faker/src/Faker/Provider/de_DE/Address.php
index eff738d0..84f6a300 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/de_DE/Address.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/de_DE/Address.php
@@ -4,7 +4,7 @@ namespace Faker\Provider\de_DE;
class Address extends \Faker\Provider\Address
{
- protected static $buildingNumber = array('###', '##', '#', '#/#', '##[abc]', '#[abc]');
+ protected static $buildingNumber = array('%##', '%#', '%', '%/%', '%#[abc]', '%[abc]');
protected static $streetSuffixLong = array(
'Gasse', 'Platz', 'Ring', 'Straße', 'Weg', 'Allee'
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/de_DE/Company.php b/vendor/fzaninotto/faker/src/Faker/Provider/de_DE/Company.php
index 9843511e..8137d47a 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/de_DE/Company.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/de_DE/Company.php
@@ -11,5 +11,14 @@ class Company extends \Faker\Provider\Company
'{{lastName}}',
);
+ /**
+ * @link http://www.personalseite.de/information/titel.htm
+ */
+ protected static $jobTitleFormat = array(
+ 'Abteilungsdirektor', 'Arbeitsdirektor', 'Aufsichtsrat', 'Beirat', 'Bereichsleiter', 'Betriebsleiter', 'Finanzvorstand', 'Geschäftsführender Gesellschafter', 'Geschäftsführer', 'Gesellschafter',
+ 'Handlungsbevollmächtigter', 'Kaufmännischer Vorstand', 'Leiter Rechtsabteilung', 'Mitglied des Aufsichtsrats', 'Personalleiter', 'Prokurist', 'Sellvertretender Vorsitzender des Vorstandes',
+ 'Vorsitzender der Geschäftsführung', 'Vorsitzender des Aufsichtsrats', 'Vorsitzender des Vorstandes', 'Vorstand Personal', 'Vorstand Technik', 'Vorstand Vertrieb', 'Vorstandsmitglied', 'Werksleiter'
+ );
+
protected static $companySuffix = array('e.G.', 'e.V.', 'GbR', 'GbR', 'OHG mbH', 'GmbH & Co. OHG', 'AG & Co. OHG', 'GmbH', 'GmbH', 'GmbH', 'GmbH', 'AG', 'AG', 'AG', 'AG', 'KG', 'KG', 'KG', 'GmbH & Co. KG', 'GmbH & Co. KG', 'AG & Co. KG', 'Stiftung & Co. KG', 'KGaA', 'GmbH & Co. KGaA', 'AG & Co. KGaA', 'Stiftung & Co. KGaA');
}
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/en_CA/PhoneNumber.php b/vendor/fzaninotto/faker/src/Faker/Provider/en_CA/PhoneNumber.php
index fc4f9248..76e0e724 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/en_CA/PhoneNumber.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/en_CA/PhoneNumber.php
@@ -2,7 +2,7 @@
namespace Faker\Provider\en_CA;
-class PhoneNumber extends \Faker\Provider\PhoneNumber
+class PhoneNumber extends \Faker\Provider\en_US\PhoneNumber
{
protected static $formats = array(
'%##-###-####',
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/en_GB/Address.php b/vendor/fzaninotto/faker/src/Faker/Provider/en_GB/Address.php
index 52fef8d3..5d733d3f 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/en_GB/Address.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/en_GB/Address.php
@@ -31,9 +31,9 @@ class Address extends \Faker\Provider\Address
'L40 4LA','LU7 4SW','WV99 1RG','EC3P 3AY','CW5 6DY','CR2 8EN','PO11 0JY','IP33 9GD','WA3 3UR','WD3 3LY','CT6 7HL','TN15 8JE',
'L35 5JA','CF23 0EL','TR13 0DP','GL14 2NW','W1D 4PR','SY5 0AR','NP4 8LA','CH45 7RH','S35 4FX','PL20 6JB','NW1 6AB','AB41 7HB',
'S72 7HG','RG27 8PG','TA1 3TF','FK3 8EP','MK43 7LX','BT79 7AQ','L9 9BL','PE28 5US','PO4 8NU','WF4 3QZ','SE23 3RG','NN5 7AR',
- 'L15 6UE','CA4 9QG','RH9 8DR','KT18 5DN','AB11 5QE','L2 2TX','NE20 0RB','TF3 2BG','NW2 2SH','IG10 3JT','HR9 7GB','N10 3DS',
- 'PA3 4NH','W8 7EY','HP19 9BW','KA1 3TU','SE26 6JG','SL3 9LU','L38 9EB','M15 6QL','BN6 8DA','PE27 5PP','LS16 8EE','AB15 4YR',
- 'CM0 7HA','SY11 4LB','IG1 3TR','NE63 8EL','CR5 3DN','NW4 4XL','BL9 6QT','KT24 6NU','EH37 5TF','SO16 9RJ','B62 8RS','PL28 8QJ',
+ 'L15 6UE','CA4 9QG','RH9 8DR','AB11 5QE','L2 2TX','NE20 0RB','TF3 2BG','NW2 2SH','IG10 3JT','HR9 7GB','N10 3DS',
+ 'PA3 4NH','W8 7EY','HP19 9BW','KA1 3TU','SE26 6JG','SL3 9LU','L38 9EB','M15 6QL','BN6 8DA','PE27 5PP','LS16 8EE',
+ 'CM0 7HA','SY11 4LB','IG1 3TR','NE63 8EL','CR5 3DN','NW4 4XL','BL9 6QT','KT24 6NU','EH37 5TF','SO16 9RJ','PL28 8QJ',
'E9 5LR','BR6 9XJ','M25 3BY','M20 1BT','SE18 7QX','DD1 2NF','NR31 8NS','BH31 6AF','TN23 5PR','TN12 9PU','HR8 2JJ','KT6 5DX',
'HX3 0NS','SN7 8NR','SY7 8AQ','CV8 1LS','NR34 9ET','BD23 3EU','YO11 3JN','BH11 9NE','CM3 3AE','KA3 7PR','DE15 9DU','PR8 9LB',
'GL53 7EN','OX15 4HW','TS19 9ES','G65 9BG','SE15 6FE','B37 7RA','BT51 3NQ','YO32 9SX','M50 3TU','LL14 5NR','PO35 5XS','W5 9TG',
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/en_IN/Person.php b/vendor/fzaninotto/faker/src/Faker/Provider/en_IN/Person.php
index 09287082..fbf97c7c 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/en_IN/Person.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/en_IN/Person.php
@@ -36,7 +36,7 @@ class Person extends \Faker\Provider\Person
'Kartik', 'Koushtubh', 'Kirti', 'Kushal', 'Kailash', 'Kalyan', 'Krishna', 'Kamlesh', 'Kalpit', 'Kabeer', 'Karim',
'Lalit', 'Lakshmi', 'Labeen',
'Mohan', 'Mukund', 'Mohan', 'Mohit', 'Manish', 'Moti', 'Mowgli', 'Mohanlal', 'Mitesh', 'Manoj', 'Monin', 'Mahmood', 'Malik', 'Mehul', 'Mustafa', 'Manpreet', 'Mukul', 'Munaf', 'Marlo',
- 'Nitin', 'Nayan', 'Naresh', 'Neerendra', 'Nirmal', 'Narayan', 'Nakul', 'Naval', 'Natwar', 'Naseer', 'Nazir', 'Nawab, ',
+ 'Nitin', 'Nayan', 'Naresh', 'Neerendra', 'Nirmal', 'Narayan', 'Nakul', 'Naval', 'Natwar', 'Naseer', 'Nazir', 'Nawab',
'Parveen', 'Pravin', 'Pranab', 'Prabhat', 'Pradeep', 'Prasoon', 'Preet', 'Pranay', 'Parvez', 'Pirzada', 'Peter',
'Omar', 'Obaid', 'Owais',
'Qabeel', 'Qabool', 'Qadim',
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/en_NG/Person.php b/vendor/fzaninotto/faker/src/Faker/Provider/en_NG/Person.php
index 1e171435..eb5e12a8 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/en_NG/Person.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/en_NG/Person.php
@@ -1,7 +1,5 @@
+ */
+class Person extends \Faker\Provider\Person
+{
+ /**
+ * @link https://news.err.ee/114745/most-popular-baby-names-of-2014
+ * @link https://www.stat.ee/public/apps/nimed/TOP
+ */
+ protected static $firstNameMale = array(
+ "Andrei", "Aleksei", "Andres", "Alexander", "Aivar", "Aleksander", "Artur", "Andrus", "Ants", "Artjom", "Anatoli", "Anton", "Arvo", "Aare", "Ain", "Aleksandr",
+ "Dmitri", "Daniil", "Daniel",
+ "Eduard", "Erik", "Enn",
+ "Fjodorov",
+ "Gennadi",
+ "Heino", "Henri", "Hugo",
+ "Igor", "Indrek", "Ivan", "Ilja",
+ "Jüri", "Jaan", "Jevgeni", "Jaanus", "Janek", "Jaak",
+ "Kristjan", "Kalev", "Karl", "Kalle", "Kaido", "Kevin", "Konstantin", "Kaspar", "Kirill", "Kristo", "Kalju", "Kristofer",
+ "Lauri", "Lembit", "Laur",
+ "Martin", "Margus", "Maksim", "Marko", "Mati", "Meelis", "Mihhail", "Marek", "Mihkel", "Mart", "Madis", "Markus", "Mark", "Marten",
+ "Nikolai", "Nikita", "Nikolay",
+ "Oleg", "Oliver", "Oskar",
+ "Peeter", "Priit", "Pavel",
+ "Rein", "Roman", "Raivo", "Rasmus", "Raul", "Robert", "Riho", "Robin", "Romet",
+ "Sergei", "Sander", "Sergey", "Siim", "Silver", "Sebastian",
+ "Toomas", "Tarmo", "Tõnu", "Tiit", "Tanel", "Taavi", "Toivo", "Tõnis",
+ "Urmas", "Ãœlo",
+ "Vladimir", "Viktor", "Valeri", "Vello", "Vadim", "Vitali", "Vladislav", "Vjatšeslav", "Victor",
+ );
+
+ /**
+ * @link https://news.err.ee/114745/most-popular-baby-names-of-2014
+ * @link https://www.stat.ee/public/apps/nimed/TOP
+ */
+ protected static $firstNameFemale = array(
+ "Aino", "Aleksandra", "Alisa", "Anastasia", "Anna", "Anne", "Anneli", "Anu", "Arina", "Annika", "Anastassia", "Alla", "Aili", "Alina", "Aime", "Antonina",
+ "Darja", "Diana",
+ "Elena", "Eliise", "Elisabeth", "Emma", "Ene", "Eve", "Eha", "Evi",
+ "Galina",
+ "Hanna", "Helen", "Heli", "Helle", "Helgi",
+ "Irina", "Inna", "Ingrid",
+ "Jekaterina", "Jelena", "Julia", "Jana",
+ "Kadri", "Katrin", "Kristi", "Kristiina", "Kristina", "Karin", "Kersti", "Kristel", "Kaja", "Külli", "Kätlin", "Krista",
+ "Laura", "Lenna", "Liisa", "Linda", "Lisandra", "Ljubov", "Ljudmila", "Liina", "Ljudmilla", "Larissa", "Liis", "Lea", "Laine", "Liudmila",
+ "Maie", "Malle", "Mare", "Maria", "Marina", "Marleen", "Marta", "Merike", "Mia", "Milana", "Mirtel", "Marika", "Merle", "Margit", "Milvi", "Maire", "Margarita", "Mari", "Maarja",
+ "Natalia", "Niina", "Nora", "Natalja", "Nadežda", "Nina",
+ "Olga", "Oksana",
+ "Piret", "Polina", "Pille",
+ "Reet", "Riina",
+ "Sandra", "Sirje", "Sofia", "Svetlana", "Silvi",
+ "Tamara", "Tatiana", "Tiina", "Tiiu", "Triin", "Tatjana", "Tiia",
+ "Ãœlle", "Urve",
+ "Valentina", "Viktoria", "Veera", "Veronika", "Vaike",
+ "Zinaida",
+ );
+
+ /**
+ * @link https://en.wikipedia.org/wiki/Category:Estonian-language_surnames
+ * @link https://www.stat.ee/public/apps/nimed/pere/TOP
+ */
+ protected static $lastName = array(
+ "Aleksejev", "Andrejev", "Allik", "Aas", "Aleksandrov", "Aare", "Aarma", "Aas", "Aasmäe", "Aav", "Aavik", "Allik", "Alver", "Andrejeva", "Aleksejeva", "Aleksandrova", "Allik", "Aas",
+ "Bogdanova", "Bogdanov",
+ "Eenpalu", "Eskola",
+ "Fjodorov", "Fjodorov", "Fjodorova", "Fjodorova",
+ "Grigorjev", "Grigorjeva",
+ "Hunt", "Hein", "Hein", "Härma",
+ "Ivanov", "Ilves", "Ilves", "Ivanov", "Ivanova", "Ivanova", "Ilves",
+ "Jõgi", "Jakobson", "Jakovlev", "Jürgenson", "Jegorov", "Järv", "Johanson", "Järve", "Jakobson", "Jänes", "Järve", "Järvis", "Jõgi", "Jõgi", "Johanson", "Jürgenson", "Järv", "Jakovleva", "Jegorova", "Järve", "Jakobson",
+ "Kuzmina", "Kalda", "Kozlova", "Kruus", "Kask", "Kukk", "Kuznetsov", "Koppel", "Kaasik", "Kuusk", "Karu", "Kütt", "Kallas", "Kivi", "Kangur", "Kuusik", "Kõiv", "Kozlov", "Kull", "Kuzmin", "Kalda", "Kaaleste", "Kaasik", "Käbin", "Kalda", "Kaljulaid", "Kaljurand", "Kallas", "Kallaste", "Kangro", "Kangur", "Kapp", "Kärner", "Karu", "Kask", "Käsper", "Kass", "Keres", "Keskküla", "Kesküla", "Kikkas", "Kingsepp", "Kirs", "Kirsipuu", "Kivi", "Klavan", "Kõiv", "Kokk", "Kontaveit", "Koppel", "Korjus", "Kotkas", "Kreek", "Kross", "Kruus", "Kukk", "Kull", "Kütt", "Kuusik", "Kuusk", "Kuznetsov", "Kuznetsova", "Kask", "Kukk", "Kuznetsova", "Koppel", "Kaasik", "Kuusk", "Karu", "Kütt", "Kallas", "Kivi", "Kuusik", "Kangur", "Kõiv", "Kull",
+ "Luik", "Lepik", "Lepp", "Lõhmus", "Liiv", "Laur", "Leppik", "Lebedev", "Laas", "Laar", "Laht", "Lass", "Laur", "Laurits", "Lemsalu", "Lepik", "Lepmets", "Lepp", "Leppik", "Levandi", "Liiv", "Lill", "Lindmaa", "Linna", "Lipp", "Lippmaa", "Lõhmus", "Loo", "Lõoke", "Luik", "Luts", "Luik", "Lepik", "Lepp", "Lõhmus", "Laur", "Liiv", "Leppik", "Lebedeva", "Laas",
+ "Männik", "Mänd", "Mitt", "Makarova", "Mägi", "Mets", "Mihhailov", "Mölder", "Morozov", "Mitt", "Männik", "Mõttus", "Mänd", "Makarov", "Mägi", "Mälk", "Mänd", "Männik", "Margiste", "Mark", "Masing", "Mets", "Mihhailov", "Mihhailova", "Mölder", "Must", "Mägi", "Mets", "Mihhailova", "Mölder", "Morozova",
+ "Nikolajev", "Nõmm", "Nikitin", "Novikov", "Nõmmik", "Nurme", "Nurmsalu", "Nõmm", "Nikitina", "Nikolajeva",
+ "Orlova", "Orav", "Oja", "Ots", "Orav", "Orlov", "Oja", "Olesk", "Öpik", "Orav", "Ots", "Oja", "Ots",
+ "Petrov", "Pärn", "Põder", "Pavlov", "Popov", "Peterson", "Puusepp", "Paju", "Põld", "Pukk", "Paas", "Palm", "Pääsuke", "Padar", "Pärn", "Pavlov", "Pavlova", "Peebo", "Peetre", "Peterson", "Petrov", "Petrova", "Pihlak", "Piho", "Piip", "Põder", "Põld", "Popov", "Popova", "Poska", "Puhvel", "Pütsep", "Puusepp", "Petrova", "Pärn", "Pavlova", "Põder", "Peterson", "Popova", "Puusepp", "Paas", "Paju", "Pukk", "Parts", "Palm", "Põld",
+ "Romanova", "Rand", "Roos", "Rebane", "Raudsepp", "Raud", "Rand", "Roos", "Rätsep", "Raag", "Raud", "Raudsepp", "Rebane", "Reek", "Reinsalu", "Rooba", "Roolaid", "Rootare", "Rummo", "Rüütel", "Rüütli", "Rebane", "Raudsepp", "Raud",
+ "Saar", "Sepp", "Smirnov", "Stepanov", "Semjonov", "Sokolov", "Sild", "Sarapuu", "Saks", "Saar", "Salumäe", "Semjonov", "Sepp", "Sibul", "Siimar", "Simm", "Sirel", "Sisask", "Smirnov", "Smirnova", "Sokk", "Sokolov", "Soosaar", "Stepanov", "Stepanova", "Susi", "Saar", "Sepp", "Smirnova", "Stepanova", "Sokolova", "Saks", "Sarapuu", "Sild", "Semjonova",
+ "Tamme", "Tomson", "Tamm", "Teder", "Toom", "Tomson", "Tamme", "Talts", "Tamm", "Tamme", "Tarvas", "Teder", "Toom", "Toome", "Toots", "Tamm", "Teder", "Toom",
+ "Uibo", "Uibo",
+ "Vassiljev", "Vaher", "Volkov", "Valk", "Vaher", "Vahtra", "Vaino", "Vainola", "Välbe", "Valdma", "Väljas", "Valk", "Vassiljev", "Vassiljeva", "Vesik", "Veski", "Viiding", "Vitsut", "Võigemast", "Volkov", "Volkova", "Võsu", "Vassiljeva", "Vaher", "Volkova",
+ );
+}
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/fa_IR/Person.php b/vendor/fzaninotto/faker/src/Faker/Provider/fa_IR/Person.php
index 055b863e..e332968d 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/fa_IR/Person.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/fa_IR/Person.php
@@ -134,4 +134,68 @@ class Person extends \Faker\Provider\Person
protected static $titleMale = array('آقای', 'استاد', 'دکتر', 'مهندس');
protected static $titleFemale = array('خانم', 'استاد', 'دکتر', 'مهندس');
+
+ /**
+ * This method returns a valid Iranian nationalCode
+ * @example '8075859741'
+ * @link https://fa.wikipedia.org/wiki/%DA%A9%D8%A7%D8%B1%D8%AA_%D8%B4%D9%86%D8%A7%D8%B3%D8%A7%DB%8C%DB%8C_%D9%85%D9%84%DB%8C#%D8%AD%D8%B3%D8%A7%D8%A8_%DA%A9%D8%B1%D8%AF%D9%86_%DA%A9%D8%AF_%DA%A9%D9%86%D8%AA%D8%B1%D9%84
+ * @return string
+ */
+ public static function nationalCode()
+ {
+ $area = self::createAreaCode();
+ $core = self::createCoreCode();
+ $control = self::createControlCode($area, $core);
+
+ return sprintf("%03d%06d%01d", $area, $core, $control);
+ }
+
+ /**
+ * This method generates a 3-digit valid area code to be used in nationalCode
+ * @return int|string
+ */
+ private static function createAreaCode()
+ {
+ $area = "000";
+
+ while ($area == "000") {
+ $area = static::numerify("###");
+ }
+
+ return $area;
+ }
+
+ /**
+ * This method randomly generates a 6-digit core code for nationalCode
+ * @return string
+ */
+ private static function createCoreCode()
+ {
+ return static::numerify("######");
+ }
+
+ /**
+ * This method uses the Iranian nationalCode validation algorithm to generate a valid 10-digit code
+ * @param $area
+ * @param $core
+ * @link https://fa.wikipedia.org/wiki/%DA%A9%D8%A7%D8%B1%D8%AA_%D8%B4%D9%86%D8%A7%D8%B3%D8%A7%DB%8C%DB%8C_%D9%85%D9%84%DB%8C#%D8%AD%D8%B3%D8%A7%D8%A8_%DA%A9%D8%B1%D8%AF%D9%86_%DA%A9%D8%AF_%DA%A9%D9%86%D8%AA%D8%B1%D9%84
+ * @return int
+ */
+ private static function createControlCode($area, $core)
+ {
+ $subNationalCodeString = $area . $core;
+
+ $sum = 0;
+ $count = 0;
+
+ for ($i = 10; $i > 1; $i--) {
+ $sum += $subNationalCodeString[$count] * ($i);
+ $count++;
+ }
+
+ if (($sum % 11) < 2) {
+ return $sum % 11;
+ }
+ return 11 - ($sum % 11);
+ }
}
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/fa_IR/PhoneNumber.php b/vendor/fzaninotto/faker/src/Faker/Provider/fa_IR/PhoneNumber.php
index 5693e74a..fb80b1d2 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/fa_IR/PhoneNumber.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/fa_IR/PhoneNumber.php
@@ -7,11 +7,40 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
/**
* @link https://fa.wikipedia.org/wiki/%D8%B4%D9%85%D8%A7%D8%B1%D9%87%E2%80%8C%D9%87%D8%A7%DB%8C_%D8%AA%D9%84%D9%81%D9%86_%D8%AF%D8%B1_%D8%A7%DB%8C%D8%B1%D8%A7%D9%86#.D8.AA.D9.84.D9.81.D9.86.E2.80.8C.D9.87.D8.A7.DB.8C_.D9.87.D9.85.D8.B1.D8.A7.D9.87
*/
- protected static $formats = array(
- '021########',
- '026########',
- '031########',
+ protected static $formats = array( // land line formts seprated by province
+ "011########", //Mazandaran
+ "013########", //Gilan
+ "017########", //Golestan
+ "021########", //Tehran
+ "023########", //Semnan
+ "024########", //Zanjan
+ "025########", //Qom
+ "026########", //Alborz
+ "028########", //Qazvin
+ "031########", //Isfahan
+ "034########", //Kerman
+ "035########", //Yazd
+ "038########", //Chaharmahal and Bakhtiari
+ "041########", //East Azerbaijan
+ "044########", //West Azerbaijan
+ "045########", //Ardabil
+ "051########", //Razavi Khorasan
+ "054########", //Sistan and Baluchestan
+ "056########", //South Khorasan
+ "058########", //North Khorasan
+ "061########", //Khuzestan
+ "066########", //Lorestan
+ "071########", //Fars
+ "074########", //Kohgiluyeh and Boyer-Ahmad
+ "076########", //Hormozgan
+ "077########", //Bushehr
+ "081########", //Hamadan
+ "083########", //Kermanshah
+ "084########", //Ilam
+ "086########", //Markazi
+ "087########", //Kurdistan
);
+
protected static $mobileNumberPrefixes = array(
'0910#######',//mci
'0911#######',
@@ -37,7 +66,7 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
'0920#######',
'0921#######',
'0937#######',
- '0937#######',
+ '0990#######', // MCI
);
public static function mobileNumber()
{
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/fi_FI/Company.php b/vendor/fzaninotto/faker/src/Faker/Provider/fi_FI/Company.php
index 2c2df523..9640c24d 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/fi_FI/Company.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/fi_FI/Company.php
@@ -46,7 +46,7 @@ class Company extends \Faker\Provider\Company
$result[] = static::randomElement($word);
}
- return join($result, ' ');
+ return join(' ', $result);
}
/**
@@ -59,6 +59,6 @@ class Company extends \Faker\Provider\Company
$result[] = static::randomElement($word);
}
- return join($result, ' ');
+ return join(' ', $result);
}
}
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/fr_BE/Payment.php b/vendor/fzaninotto/faker/src/Faker/Provider/fr_BE/Payment.php
index da248dac..21da5b5c 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/fr_BE/Payment.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/fr_BE/Payment.php
@@ -32,7 +32,7 @@ class Payment extends \Faker\Provider\Payment
*/
public static function vat($spacedNationalPrefix = true)
{
- $prefix = ($spacedNationalPrefix) ? "BE " : "BE";
+ $prefix = $spacedNationalPrefix ? "BE " : "BE";
return sprintf("%s0%d", $prefix, self::randomNumber(9, true));
}
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/fr_CA/Text.php b/vendor/fzaninotto/faker/src/Faker/Provider/fr_CA/Text.php
new file mode 100644
index 00000000..322dc66c
--- /dev/null
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/fr_CA/Text.php
@@ -0,0 +1,2448 @@
+generator->numerify('######');
+ $nik = $this->birthPlaceCode();
+ $nik .= $this->generator->numerify('##');
if (!$birthDate) {
$birthDate = $this->generator->dateTimeBetween();
@@ -286,8 +325,19 @@ class Person extends \Faker\Provider\Person
$nik .= $birthDate->format('my');
# add last random digits
- $nik.= $this->generator->numerify('####');
+ $nik .= $this->generator->numerify('####');
return $nik;
}
+
+ /**
+ * Generates birth place code for NIK
+ *
+ * @link https://id.wikipedia.org/wiki/Nomor_Induk_Kependudukan
+ * @link http://informasipedia.com/wilayah-indonesia/daftar-kabupaten-kota-di-indonesia/
+ */
+ protected function birthPlaceCode()
+ {
+ return static::randomElement(static::$birthPlaceCode);
+ }
}
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/it_CH/Person.php b/vendor/fzaninotto/faker/src/Faker/Provider/it_CH/Person.php
index 5592fb53..12ef3379 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/it_CH/Person.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/it_CH/Person.php
@@ -85,4 +85,17 @@ class Person extends \Faker\Provider\it_IT\Person
'Weber', 'Widmer',
'Zanetti', 'Zanini', 'Zimmermann',
);
+
+ /**
+ * Generates a valid random AVS13 (swiss social security) number
+ *
+ * This function acts as an alias for the function defined in the fr_CH provider.
+ *
+ * @see \Faker\Provider\fr_CH\Person::avs13()
+ * @return string
+ */
+ public static function avs13()
+ {
+ return \Faker\Provider\fr_CH\Person::avs13();
+ }
}
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/it_IT/Company.php b/vendor/fzaninotto/faker/src/Faker/Provider/it_IT/Company.php
index 6acb6daa..e32a37b0 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/it_IT/Company.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/it_IT/Company.php
@@ -48,7 +48,7 @@ class Company extends \Faker\Provider\Company
$result[] = static::randomElement($word);
}
- return join($result, ' ');
+ return join(' ', $result);
}
/**
@@ -61,7 +61,7 @@ class Company extends \Faker\Provider\Company
$result[] = static::randomElement($word);
}
- return join($result, ' ');
+ return join(' ', $result);
}
/**
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/ja_JP/Address.php b/vendor/fzaninotto/faker/src/Faker/Provider/ja_JP/Address.php
index 2ef8d89d..10714672 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/ja_JP/Address.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/ja_JP/Address.php
@@ -11,7 +11,7 @@ class Address extends \Faker\Provider\Address
'デンマーク', 'ジブãƒå…±å’Œå›½', 'ドミニカ国', 'ドミニカ共和国',
'エクアドル', 'エジプト', 'エルサルãƒãƒ‰ãƒ«', '赤é“ギニア共和国', 'エリトリア', 'エストニア', 'エãƒã‚ªãƒ”ã‚¢',
'フェãƒãƒ¼è«¸å³¶', 'フォークランド諸島', 'フィジー共和国', 'フィンランド', 'フランス', 'ãƒ•ãƒ©ãƒ³ã‚¹é ˜ã‚®ã‚¢ãƒŠ', 'ãƒ•ãƒ©ãƒ³ã‚¹é ˜ãƒãƒªãƒã‚·ã‚¢', 'ãƒ•ãƒ©ãƒ³ã‚¹é ˜æ¥µå—諸島',
- 'ガボン', 'ガンビア', 'グルジア', 'ドイツ', 'ガーナ', 'ジブラルタル', 'ギリシャ', 'グリーンランド', 'グレナダ', 'グアドループ', 'グアム', 'グアテマラ', 'ガーンジー', 'ギニア', 'ギニアビサウ', 'ガイアナ',
+ 'ガボン', 'ガンビア', 'ジョージア', 'ドイツ', 'ガーナ', 'ジブラルタル', 'ギリシャ', 'グリーンランド', 'グレナダ', 'グアドループ', 'グアム', 'グアテマラ', 'ガーンジー', 'ギニア', 'ギニアビサウ', 'ガイアナ',
'ãƒã‚¤ãƒ', 'ãƒãƒ¼ãƒ‰å³¶ã¨ãƒžã‚¯ãƒ‰ãƒŠãƒ«ãƒ‰è«¸å³¶', 'ãƒãƒã‚«ãƒ³å¸‚国', 'ホンジュラス', '香港', 'ãƒãƒ³ã‚¬ãƒªãƒ¼',
'アイスランド', 'インド', 'インドãƒã‚·ã‚¢', 'イラン', 'イラク', 'アイルランド共和国', 'マン島', 'イスラエル', 'イタリア',
'ジャマイカ', '日本', 'ジャージー島', 'ヨルダン',
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/ja_JP/Text.php b/vendor/fzaninotto/faker/src/Faker/Provider/ja_JP/Text.php
index 34556202..c8671cc0 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/ja_JP/Text.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/ja_JP/Text.php
@@ -598,7 +598,7 @@ EOT;
protected static function explode($text)
{
$chars = array();
- foreach (preg_split('//u', preg_replace('/\s+/', '', $text)) as $char) {
+ foreach (preg_split('//u', preg_replace('/\s+/u', '', $text)) as $char) {
if ($char !== '') {
$chars[] = $char;
}
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/ka_GE/Company.php b/vendor/fzaninotto/faker/src/Faker/Provider/ka_GE/Company.php
index 888386a7..c2ccb40a 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/ka_GE/Company.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/ka_GE/Company.php
@@ -2,7 +2,6 @@
namespace Faker\Provider\ka_GE;
-
class Company extends \Faker\Provider\Company
{
protected static $companyPrefixes = array(
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/lt_LT/Person.php b/vendor/fzaninotto/faker/src/Faker/Provider/lt_LT/Person.php
index 47b862bc..10004804 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/lt_LT/Person.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/lt_LT/Person.php
@@ -13,6 +13,11 @@ class Person extends \Faker\Provider\Person
'{{firstNameFemale}} {{lastNameFemale}}',
);
+ protected static $lastNameFormat = array(
+ '{{firstNameMale}}',
+ '{{firstNameFemale}}',
+ );
+
protected static $titleMale = array('p.', 'ponas');
protected static $titleFemale = array('p.', 'ponia', 'panelÄ—');
@@ -247,6 +252,22 @@ class Person extends \Faker\Provider\Person
'PetrauskaitÄ—', 'VasiliauskaitÄ—', 'ButkutÄ—', 'PociÅ«tÄ—', 'LukoÅ¡eviÄiÅ«tÄ—', 'BalÄiÅ«naitÄ—', 'KavaliauskaitÄ—'
);
+ /**
+ * @param string|null $gender 'male', 'female' or null for any
+ * @example 'Doe'
+ * @return string
+ */
+ public function lastName($gender = null)
+ {
+ if ($gender === static::GENDER_MALE) {
+ return static::lastNameMale();
+ } elseif ($gender === static::GENDER_FEMALE) {
+ return static::lastNameFemale();
+ }
+
+ return $this->generator->parse(static::randomElement(static::$lastNameFormat));
+ }
+
/**
* Return male last name
* @return string
@@ -302,11 +323,11 @@ class Person extends \Faker\Provider\Person
$birthdate = \Faker\Provider\DateTime::dateTimeThisCentury();
}
- $genderNumber = ($gender == 'male') ? (int) 1 : (int) 0;
+ $genderNumber = ($gender == 'male') ? 1 : 0;
$firstNumber = (int) floor($birthdate->format('Y') / 100) * 2 - 34 - $genderNumber;
$datePart = $birthdate->format('ymd');
- $randomDigits = (string) ( ! $randomNumber || strlen($randomNumber < 3)) ? static::numerify('###') : substr($randomNumber, 0, 3);
+ $randomDigits = (string) ( ! $randomNumber || strlen($randomNumber) < 3) ? static::numerify('###') : substr($randomNumber, 0, 3);
$partOfPerosnalCode = $firstNumber . $datePart . $randomDigits;
$sum = self::calculateSum($partOfPerosnalCode, 1);
@@ -318,7 +339,7 @@ class Person extends \Faker\Provider\Person
}
$sum = self::calculateSum($partOfPerosnalCode, 2);
- $liekana = (int) $sum % 11;
+ $liekana = $sum % 11;
$lastNumber = ($liekana !== 10) ? $liekana : 0;
return $firstNumber . $datePart . $randomDigits . $lastNumber;
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/mn_MN/Person.php b/vendor/fzaninotto/faker/src/Faker/Provider/mn_MN/Person.php
index 8a0b8206..3042b5bb 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/mn_MN/Person.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/mn_MN/Person.php
@@ -72,7 +72,7 @@ class Person extends \Faker\Provider\Person
/**
* Generate an identification number.
- *
+ *
* @example ИЙ92011412
*/
public function idNumber()
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Address.php b/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Address.php
index 5ec2f751..1ad7d44b 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Address.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Address.php
@@ -67,7 +67,7 @@ class Address extends \Faker\Provider\Address
/**
* 'Jalan' & 'Jln' are more frequently used than 'Lorong'
- *
+ *
* @link https://en.wikipedia.org/wiki/List_of_roads_in_Kuala_Lumpur#Standard_translations
*/
protected static $streetPrefix = array(
@@ -117,7 +117,7 @@ class Address extends \Faker\Provider\Address
/**
* 'Bandar' and 'Taman' are the most common township prefix
- *
+ *
* @link https://en.wikipedia.org/wiki/Template:Greater_Kuala_Lumpur > Townships
* @link https://en.wikipedia.org/wiki/Template:Johor > Townships
* @link https://en.wikipedia.org/wiki/Template:Kedah > Townships
@@ -497,9 +497,9 @@ class Address extends \Faker\Provider\Address
/**
* Return a building prefix
- *
+ *
* @example 'No.'
- *
+ *
* @return @string
*/
public static function buildingPrefix()
@@ -509,9 +509,9 @@ class Address extends \Faker\Provider\Address
/**
* Return a building number
- *
+ *
* @example '123'
- *
+ *
* @return @string
*/
public static function buildingNumber()
@@ -521,7 +521,7 @@ class Address extends \Faker\Provider\Address
/**
* Return a street prefix
- *
+ *
* @example 'Jalan'
*/
public function streetPrefix()
@@ -533,9 +533,9 @@ class Address extends \Faker\Provider\Address
/**
* Return a complete streename
- *
+ *
* @example 'Jalan Utama 7'
- *
+ *
* @return @string
*/
public function streetName()
@@ -547,9 +547,9 @@ class Address extends \Faker\Provider\Address
/**
* Return a randown township
- *
+ *
* @example Taman Bahagia
- *
+ *
* @return @string
*/
public function township()
@@ -561,9 +561,9 @@ class Address extends \Faker\Provider\Address
/**
* Return a township prefix abbreviation
- *
+ *
* @example 'USJ'
- *
+ *
* @return @string
*/
public function townshipPrefixAbbr()
@@ -573,9 +573,9 @@ class Address extends \Faker\Provider\Address
/**
* Return a township prefix
- *
+ *
* @example 'Taman'
- *
+ *
* @return @string
*/
public function townshipPrefix()
@@ -585,7 +585,7 @@ class Address extends \Faker\Provider\Address
/**
* Return a township suffix
- *
+ *
* @example 'Bahagia'
*/
public function townshipSuffix()
@@ -595,12 +595,12 @@ class Address extends \Faker\Provider\Address
/**
* Return a postcode based on state
- *
+ *
* @example '55100'
* @link https://en.wikipedia.org/wiki/Postal_codes_in_Malaysia#States
- *
+ *
* @param null|string $state 'state' or null
- *
+ *
* @return @string
*/
public static function postcode($state = null)
@@ -665,9 +665,9 @@ class Address extends \Faker\Provider\Address
/**
* Return the complete town address with matching postcode and state
- *
+ *
* @example 55100 Bukit Bintang, Kuala Lumpur
- *
+ *
* @return @string
*/
public function townState()
@@ -682,9 +682,9 @@ class Address extends \Faker\Provider\Address
/**
* Return a random city (town)
- *
+ *
* @example 'Ampang'
- *
+ *
* @return @string
*/
public function city()
@@ -695,9 +695,9 @@ class Address extends \Faker\Provider\Address
/**
* Return a random state
- *
+ *
* @example 'Johor'
- *
+ *
* @return @string
*/
public function state()
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Company.php b/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Company.php
index f2e2f5f4..0e681330 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Company.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Company.php
@@ -13,7 +13,7 @@ class Company extends \Faker\Provider\Company
/**
* There are more Private Limited Companies(Sdn Bhd) than Public Listed Companies(Berhad)
- *
+ *
* @link http://www.risscorporateservices.com/types-of-business-entities.html
*/
protected static $companySuffix = array(
@@ -85,7 +85,7 @@ class Company extends \Faker\Provider\Company
/**
* Return a random company name
- *
+ *
* @example 'AirAsia'
*/
public static function companyName()
@@ -95,7 +95,7 @@ class Company extends \Faker\Provider\Company
/**
* Return a random industry
- *
+ *
* @example 'Automobil'
*/
public static function industry()
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Miscellaneous.php b/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Miscellaneous.php
index 22efd33b..b42c6685 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Miscellaneous.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Miscellaneous.php
@@ -22,7 +22,7 @@ class Miscellaneous extends \Faker\Provider\Miscellaneous
/**
* Some alphabet has higher frequency that coincides with the current number
* of registrations. E.g. W = Wilayah Persekutuan
- *
+ *
* @link https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Malaysia#Current_format
*/
protected static $peninsularPrefix = array(
@@ -71,7 +71,7 @@ class Miscellaneous extends \Faker\Provider\Miscellaneous
/**
* Chances of having an empty alphabet will be 1/24
- *
+ *
* @link https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Malaysia#Current_format
*/
protected static $validAlphabets = array(
@@ -83,9 +83,9 @@ class Miscellaneous extends \Faker\Provider\Miscellaneous
/**
* Return a valid Malaysia JPJ(Road Transport Department) vehicle licence plate number
- *
+ *
* @example 'WKN 2368'
- *
+ *
* @return @string
*/
public function jpjNumberPlate()
@@ -97,9 +97,9 @@ class Miscellaneous extends \Faker\Provider\Miscellaneous
/**
* Return Peninsular prefix alphabet
- *
+ *
* @example 'W'
- *
+ *
* @return @string
*/
public static function peninsularPrefix()
@@ -109,9 +109,9 @@ class Miscellaneous extends \Faker\Provider\Miscellaneous
/**
* Return Sarawak state prefix alphabet
- *
+ *
* @example 'QA'
- *
+ *
* @return @string
*/
public static function sarawakPrefix()
@@ -121,9 +121,9 @@ class Miscellaneous extends \Faker\Provider\Miscellaneous
/**
* Return Sabah state prefix alphabet
- *
+ *
* @example 'SA'
- *
+ *
* @return @string
*/
public static function sabahPrefix()
@@ -133,9 +133,9 @@ class Miscellaneous extends \Faker\Provider\Miscellaneous
/**
* Return specialty licence plate prefix
- *
+ *
* @example 'G1M'
- *
+ *
* @return @string
*/
public static function specialPrefix()
@@ -145,9 +145,9 @@ class Miscellaneous extends \Faker\Provider\Miscellaneous
/**
* Return a valid license plate alphabet
- *
+ *
* @example 'A'
- *
+ *
* @return @string
*/
public static function validAlphabet()
@@ -157,9 +157,9 @@ class Miscellaneous extends \Faker\Provider\Miscellaneous
/**
* Return a valid number sequence between 1 and 9999
- *
+ *
* @example '1234'
- *
+ *
* @return @integer
*/
public static function numberSequence()
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Payment.php b/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Payment.php
index b70a590f..4a46af16 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Payment.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Payment.php
@@ -144,9 +144,9 @@ class Payment extends \Faker\Provider\Payment
/**
* Return a Malaysian Bank
- *
+ *
* @example 'Maybank'
- *
+ *
* @return @string
*/
public function bank()
@@ -158,9 +158,9 @@ class Payment extends \Faker\Provider\Payment
/**
* Return a Malaysian Bank account number
- *
+ *
* @example '1234567890123456'
- *
+ *
* @return @string
*/
public function bankAccountNumber()
@@ -172,9 +172,9 @@ class Payment extends \Faker\Provider\Payment
/**
* Return a Malaysian Local Bank
- *
+ *
* @example 'Public Bank'
- *
+ *
* @return @string
*/
public static function localBank()
@@ -184,9 +184,9 @@ class Payment extends \Faker\Provider\Payment
/**
* Return a Malaysian Foreign Bank
- *
+ *
* @example 'Citibank Berhad'
- *
+ *
* @return @string
*/
public static function foreignBank()
@@ -196,9 +196,9 @@ class Payment extends \Faker\Provider\Payment
/**
* Return a Malaysian Government Bank
- *
+ *
* @example 'Bank Simpanan Nasional'
- *
+ *
* @return @string
*/
public static function governmentBank()
@@ -208,9 +208,9 @@ class Payment extends \Faker\Provider\Payment
/**
* Return a Malaysian insurance company
- *
+ *
* @example 'AIA Malaysia'
- *
+ *
* @return @string
*/
public static function insurance()
@@ -220,9 +220,9 @@ class Payment extends \Faker\Provider\Payment
/**
* Return a Malaysian Bank SWIFT Code
- *
+ *
* @example 'MBBEMYKLXXX'
- *
+ *
* @return @string
*/
public static function swiftCode()
@@ -232,9 +232,9 @@ class Payment extends \Faker\Provider\Payment
/**
* Return the Malaysian currency symbol
- *
+ *
* @example 'RM'
- *
+ *
* @return @string
*/
public static function currencySymbol()
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Person.php b/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Person.php
index 7dfaaac5..28d1092a 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Person.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/Person.php
@@ -160,12 +160,12 @@ class Person extends \Faker\Provider\Person
/**
* Note: The empty elements are for names without the title, chances increase by number of empty elements.
- *
+ *
* @link https://en.wikipedia.org/wiki/Muhammad_(name)
*/
protected static $muhammadName = array('', '', '', '', 'Mohamad ','Mohamed ','Mohammad ','Mohammed ','Muhamad ','Muhamed ','Muhammad ','Muhammed ','Muhammet ','Mohd ');
/**
- *
+ *
* @link https://en.wikipedia.org/wiki/Noor_(name)
*/
protected static $nurName = array('', '', '', '', 'Noor ', 'Nor ', 'Nur ', 'Nur ', 'Nur ', 'Nurul ','Nuur ');
@@ -183,10 +183,10 @@ class Person extends \Faker\Provider\Person
/**
* Chinese family name or surname
- *
+ *
* @link https://en.wikipedia.org/wiki/List_of_common_Chinese_surnames
* @link https://en.wikipedia.org/wiki/Hundred_Family_Surnames
- *
+ *
*/
protected static $lastNameChinese = array(
'An','Ang','Au','Au-Yong','Aun','Aw',
@@ -218,7 +218,7 @@ class Person extends \Faker\Provider\Person
/**
* Chinese second character
- *
+ *
* @link https://en.wikipedia.org/wiki/Chinese_given_name
* @link https://en.wikipedia.org/wiki/List_of_Malaysians_of_Chinese_descent
* @link https://en.wikipedia.org/wiki/Category:Malaysian_people_of_Cantonese_descent
@@ -276,7 +276,7 @@ class Person extends \Faker\Provider\Person
/**
* Chinese male third character
- *
+ *
* @link https://en.wikipedia.org/wiki/Chinese_given_name
* @link https://en.wikipedia.org/wiki/List_of_Malaysians_of_Chinese_descent
* @link https://en.wikipedia.org/wiki/Category:Malaysian_people_of_Cantonese_descent
@@ -332,7 +332,7 @@ class Person extends \Faker\Provider\Person
/**
* Chinese female third character
- *
+ *
* @link https://en.wikipedia.org/wiki/Chinese_given_name
* @link https://en.wikipedia.org/wiki/List_of_Malaysians_of_Chinese_descent
* @link https://en.wikipedia.org/wiki/Category:Malaysian_people_of_Cantonese_descent
@@ -542,9 +542,9 @@ class Person extends \Faker\Provider\Person
/**
* Return a Malay male first name
- *
+ *
* @example 'Ahmad'
- *
+ *
* @return string
*/
public static function firstNameMaleMalay()
@@ -554,9 +554,9 @@ class Person extends \Faker\Provider\Person
/**
* Return a Malay female first name
- *
+ *
* @example 'Adibah'
- *
+ *
* @return string
*/
public static function firstNameFemaleMalay()
@@ -566,9 +566,9 @@ class Person extends \Faker\Provider\Person
/**
* Return a Malay last name
- *
+ *
* @example 'Abdullah'
- *
+ *
* @return string
*/
public function lastNameMalay()
@@ -578,9 +578,9 @@ class Person extends \Faker\Provider\Person
/**
* Return a Malay male 'Muhammad' name
- *
+ *
* @example 'Muhammad'
- *
+ *
* @return string
*/
public static function muhammadName()
@@ -590,9 +590,9 @@ class Person extends \Faker\Provider\Person
/**
* Return a Malay female 'Nur' name
- *
+ *
* @example 'Nur'
- *
+ *
* @return string
*/
public static function nurName()
@@ -602,9 +602,9 @@ class Person extends \Faker\Provider\Person
/**
* Return a Malay male 'Haji' title
- *
+ *
* @example 'Haji'
- *
+ *
* @return string
*/
public static function haji()
@@ -614,9 +614,9 @@ class Person extends \Faker\Provider\Person
/**
* Return a Malay female 'Hajjah' title
- *
+ *
* @example 'Hajjah'
- *
+ *
* @return string
*/
public static function hajjah()
@@ -626,9 +626,9 @@ class Person extends \Faker\Provider\Person
/**
* Return a Malay title
- *
+ *
* @example 'Syed'
- *
+ *
* @return string
*/
public static function titleMaleMalay()
@@ -638,9 +638,9 @@ class Person extends \Faker\Provider\Person
/**
* Return a Chinese last name
- *
+ *
* @example 'Lim'
- *
+ *
* @return string
*/
public static function lastNameChinese()
@@ -650,9 +650,9 @@ class Person extends \Faker\Provider\Person
/**
* Return a Chinese male first name
- *
+ *
* @example 'Goh Tong'
- *
+ *
* @return string
*/
public static function firstNameMaleChinese()
@@ -662,9 +662,9 @@ class Person extends \Faker\Provider\Person
/**
* Return a Chinese female first name
- *
+ *
* @example 'Mew Choo'
- *
+ *
* @return string
*/
public static function firstNameFemaleChinese()
@@ -674,9 +674,9 @@ class Person extends \Faker\Provider\Person
/**
* Return a Christian male name
- *
+ *
* @example 'Aaron'
- *
+ *
* @return string
*/
public static function firstNameMaleChristian()
@@ -686,9 +686,9 @@ class Person extends \Faker\Provider\Person
/**
* Return a Christian female name
- *
+ *
* @example 'Alice'
- *
+ *
* @return string
*/
public static function firstNameFemaleChristian()
@@ -698,9 +698,9 @@ class Person extends \Faker\Provider\Person
/**
* Return an Indian initial
- *
+ *
* @example 'S. '
- *
+ *
* @return string
*/
public static function initialIndian()
@@ -710,9 +710,9 @@ class Person extends \Faker\Provider\Person
/**
* Return an Indian male first name
- *
+ *
* @example 'Arumugam'
- *
+ *
* @return string
*/
public static function firstNameMaleIndian()
@@ -722,9 +722,9 @@ class Person extends \Faker\Provider\Person
/**
* Return an Indian female first name
- *
+ *
* @example 'Ambiga'
- *
+ *
* @return string
*/
public static function firstNameFemaleIndian()
@@ -734,9 +734,9 @@ class Person extends \Faker\Provider\Person
/**
* Return an Indian last name
- *
+ *
* @example 'Subramaniam'
- *
+ *
* @return string
*/
public static function lastNameIndian()
@@ -746,9 +746,9 @@ class Person extends \Faker\Provider\Person
/**
* Return a random last name
- *
+ *
* @example 'Lee'
- *
+ *
* @return string
*/
public function lastName()
@@ -764,14 +764,14 @@ class Person extends \Faker\Provider\Person
/**
* Return a Malaysian I.C. No.
- *
+ *
* @example '890123-45-6789'
- *
+ *
* @link https://en.wikipedia.org/wiki/Malaysian_identity_card#Structure_of_the_National_Registration_Identity_Card_Number_(NRIC)
- *
+ *
* @param string|null $gender 'male', 'female' or null for any
* @param bool|string|null $hyphen true, false, or any separator characters
- *
+ *
* @return string
*/
public static function myKadNumber($gender = null, $hyphen = false)
@@ -786,8 +786,8 @@ class Person extends \Faker\Provider\Person
$dd = DateTime::dayOfMonth();
// place of birth (1-59 except 17-20)
- while (in_array(($pb = mt_rand(1, 59)), array(17, 18, 19, 20))) {
- };
+ while (in_array($pb = mt_rand(1, 59), array(17, 18, 19, 20))) {
+ }
// random number
$nnn = mt_rand(0, 999);
@@ -804,7 +804,7 @@ class Person extends \Faker\Provider\Person
// formatting with hyphen
if ($hyphen === true) {
$hyphen = "-";
- } else if ($hyphen === false) {
+ } elseif ($hyphen === false) {
$hyphen = "";
}
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/PhoneNumber.php b/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/PhoneNumber.php
index ad199c0d..f89111d9 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/PhoneNumber.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/ms_MY/PhoneNumber.php
@@ -88,12 +88,12 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
/**
* Return a Malaysian Mobile Phone Number.
- *
+ *
* @example '+6012-345-6789'
- *
+ *
* @param bool $countryCodePrefix true, false
* @param bool $formatting true, false
- *
+ *
* @return string
*/
public function mobileNumber($countryCodePrefix = true, $formatting = true)
@@ -113,9 +113,9 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
/**
* Return prefix digits for 011 numbers
- *
+ *
* @example '10'
- *
+ *
* @return string
*/
public static function zeroOneOnePrefix()
@@ -125,9 +125,9 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
/**
* Return prefix digits for 014 numbers
- *
+ *
* @example '2'
- *
+ *
* @return string
*/
public static function zeroOneFourPrefix()
@@ -137,9 +137,9 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
/**
* Return prefix digits for 015 numbers
- *
+ *
* @example '1'
- *
+ *
* @return string
*/
public static function zeroOneFivePrefix()
@@ -149,12 +149,12 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
/**
* Return a Malaysian Fixed Line Phone Number.
- *
+ *
* @example '+603-4567-8912'
- *
+ *
* @param bool $countryCodePrefix true, false
* @param bool $formatting true, false
- *
+ *
* @return string
*/
public function fixedLineNumber($countryCodePrefix = true, $formatting = true)
@@ -174,12 +174,12 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
/**
* Return a Malaysian VoIP Phone Number.
- *
+ *
* @example '+6015-678-9234'
- *
+ *
* @param bool $countryCodePrefix true, false
* @param bool $formatting true, false
- *
+ *
* @return string
*/
public function voipNumber($countryCodePrefix = true, $formatting = true)
@@ -199,11 +199,11 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
/**
* Return a Malaysian Country Code Prefix.
- *
+ *
* @example '+6'
- *
+ *
* @param bool $formatting true, false
- *
+ *
* @return string
*/
public static function countryCodePrefix($formatting = true)
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/nb_NO/Person.php b/vendor/fzaninotto/faker/src/Faker/Provider/nb_NO/Person.php
index c95410b7..56d68837 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/nb_NO/Person.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/nb_NO/Person.php
@@ -300,7 +300,7 @@ class Person extends \Faker\Provider\Person
*/
$randomDigits = (string)static::numerify('##');
- switch($gender) {
+ switch ($gender) {
case static::GENDER_MALE:
$genderDigit = static::randomElement(array(1,3,5,7,9));
break;
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/nb_NO/PhoneNumber.php b/vendor/fzaninotto/faker/src/Faker/Provider/nb_NO/PhoneNumber.php
index 9be29932..c97e720a 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/nb_NO/PhoneNumber.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/nb_NO/PhoneNumber.php
@@ -19,4 +19,23 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
'9#######',
'4#######',
);
+
+ /**
+ * @var array Norweign mobile number formats
+ */
+ protected static $mobileFormats = array(
+ '+474#######',
+ '+479#######',
+ '9## ## ###',
+ '4## ## ###',
+ '9#######',
+ '4#######',
+ );
+
+ public function mobileNumber()
+ {
+ $format = static::randomElement(static::$mobileFormats);
+
+ return self::numerify($this->generator->parse($format));
+ }
}
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/ne_NP/Person.php b/vendor/fzaninotto/faker/src/Faker/Provider/ne_NP/Person.php
index 0a88375e..706cd339 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/ne_NP/Person.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/ne_NP/Person.php
@@ -45,11 +45,11 @@ class Person extends \Faker\Provider\Person
'Kabindra', 'Kailash', 'Kalyan', 'Kamal', 'Kamod', 'Kapil', 'Karan', 'Karna', 'Khagendra', 'Kishor', 'Kris', 'Krishna', 'Krisus', 'Kuber',
'Lakshman', 'Lalit', 'Lava', 'Lochan', 'Lokesh',
'Madhav', 'Madhukar', 'Madhur', 'Mandeep', 'Manish', 'Manjul', 'Manoj', 'Milan', 'Mohit', 'Mridul',
- 'Nabin', 'Nakul', 'Narayan', 'Narendra', 'Naresh', 'Neil', 'Nerain', 'Nirajan', 'Nirajan', 'Nirmal', 'Nirupam', 'Nischal', 'Nishad', 'Nishant', 'Nutan',
+ 'Nabin', 'Nakul', 'Narayan', 'Narendra', 'Naresh', 'Neil', 'Nerain', 'Nirajan', 'Nirmal', 'Nirupam', 'Nischal', 'Nishad', 'Nishant', 'Nutan',
'Om',
'Paras', 'Parikshit', 'Parimal', 'Pawan', 'Piyush', 'Prabal', 'Prabesh', 'Prabhat', 'Prabin', 'Prajwal', 'Prakash', 'Pramesh', 'Pramod', 'Pranaya', 'Pranil', 'Prasanna', 'Prashant', 'Prasun', 'Pratap', 'Pratik', 'Prayag', 'Prianshu', 'Prithivi', 'Purna', 'Pushkar',
'Raghab', 'Rahul', 'Rajan', 'Rajesh', 'Rakesh', 'Ramesh', 'Ranjan', 'Ranjit', 'Ricky', 'Rijan', 'Rishab', 'Rishikesh', 'Rohan', 'Rohit', 'Roshan',
- 'Sabin', 'Sachit', 'Safal', 'Sahaj', 'Sahan', 'Sajal', 'Sakar', 'Samir', 'Sanchit', 'Sandesh', 'Sanjay', 'Sanjeev', 'Sankalpa', 'Santosh', 'Sarad', 'Saroj', 'Sashi', 'Saumya', 'Sevak', 'Shailesh', 'Shakti', 'Shamundra', 'Shantanu', 'Shashank', 'Shashwat', 'Shekar', 'Shyam', 'Siddhartha', 'Sitaram', 'Sohan', 'Sohil', 'Soviet', 'Spandan', 'Subal', 'Subham', 'Subodh', 'Sudan', 'Sudhir', 'Sudin', 'Sudip', 'Sujan', 'Sujit', 'Sukanta', 'Sumel', 'Sunil', 'Suraj', 'Suraj', 'Surendra', 'Surya', 'Sushant', 'Sushil', 'Suyash', 'Suyog', 'Swagat', 'Swapnil', 'Swarup',
+ 'Sabin', 'Sachit', 'Safal', 'Sahaj', 'Sahan', 'Sajal', 'Sakar', 'Samir', 'Sanchit', 'Sandesh', 'Sanjay', 'Sanjeev', 'Sankalpa', 'Santosh', 'Sarad', 'Saroj', 'Sashi', 'Saumya', 'Sevak', 'Shailesh', 'Shakti', 'Shamundra', 'Shantanu', 'Shashank', 'Shashwat', 'Shekar', 'Shyam', 'Siddhartha', 'Sitaram', 'Sohan', 'Sohil', 'Soviet', 'Spandan', 'Subal', 'Subham', 'Subodh', 'Sudan', 'Sudhir', 'Sudin', 'Sudip', 'Sujan', 'Sujit', 'Sukanta', 'Sumel', 'Sunil', 'Suraj', 'Surendra', 'Surya', 'Sushant', 'Sushil', 'Suyash', 'Suyog', 'Swagat', 'Swapnil', 'Swarup',
'Tej', 'Tilak', 'Tirtha', 'Trailokya', 'Trilochan',
'Udit', 'Ujjwal', 'Umesh', 'Uttam',
'Yogendra', 'Yogesh', 'Yuvaraj',
@@ -80,7 +80,7 @@ class Person extends \Faker\Provider\Person
protected static $lastName = array(
'Acharya', 'Adhikari', 'Agarwal', 'Amatya', 'Aryal',
'Baidya', 'Bajracharya', 'Balami', 'Banepali', 'Baniya', 'Banjade', 'Baral', 'Basnet', 'Bastakoti', 'Bastola', 'Basyal', 'Belbase', 'Bhandari', 'Bhatta', 'Bhattarai', 'Bhusal', 'Bijukchhe', 'Bisht', 'Bohara', 'Budathoki', 'Byanjankar',
- 'Chalise', 'Chamling', 'Chapagain', 'Chaudhary', 'Chhetri', 'Chhetri',
+ 'Chalise', 'Chamling', 'Chapagain', 'Chaudhary', 'Chhetri',
'Dahal', 'Dangol', 'Dawadi', 'Devkota', 'Dhakal', 'Dhamla', 'Dhaubhadel', 'Dhungel',
'Gauchan', 'Gautam', 'Ghale', 'Ghimire', 'Giri', 'Golchha', 'Gurung', 'Gyalzen', 'Gyawali',
'Hamal', 'Himanshu', 'Humagain',
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/nl_BE/Payment.php b/vendor/fzaninotto/faker/src/Faker/Provider/nl_BE/Payment.php
index 9e1a3b90..f8eb2338 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/nl_BE/Payment.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/nl_BE/Payment.php
@@ -32,7 +32,7 @@ class Payment extends \Faker\Provider\Payment
*/
public static function vat($spacedNationalPrefix = true)
{
- $prefix = ($spacedNationalPrefix) ? "BE " : "BE";
+ $prefix = $spacedNationalPrefix ? "BE " : "BE";
return sprintf("%s0%d", $prefix, self::randomNumber(9, true));
}
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/nl_NL/Company.php b/vendor/fzaninotto/faker/src/Faker/Provider/nl_NL/Company.php
index 3185b894..bb8c90da 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/nl_NL/Company.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/nl_NL/Company.php
@@ -4,33 +4,109 @@ namespace Faker\Provider\nl_NL;
class Company extends \Faker\Provider\Company
{
- protected static $formats = array(
- '{{lastName}} {{companySuffix}}',
- '{{lastName}} {{lastName}} {{companySuffix}}',
- '{{lastName}}',
- '{{lastName}}',
+ /**
+ * @see https://nl.wikipedia.org/wiki/Lijst_van_beroepen
+ */
+ protected static $jobTitleFormat = array(
+ 'Aankondiger', 'Acceptant', 'Accountant', 'Accountmanager', 'Acrobaat', 'Acteur', 'Activiteitenbegeleider', 'Actuaris', 'Acupuncturist', 'Adjudant', 'Administrateur', 'Advertentiezetter', 'Adviseur', 'Advocaat', 'Agent', 'Agrariër', 'Akoepedist', 'Akoesticus', 'Alchemist', 'Allergoloog', 'Altist', 'Amanuensis', 'Ambtenaar', 'Ambulancebegeleider', 'Ambulancechauffeur', 'Ambulanceverpleegkundige', 'Analist', 'Anatoom', 'Andragoog', 'Androloog', 'Anesthesist', 'Anesthesiemedewerker', 'Animeermeisje', 'Antiquaar', 'Antiquair', 'Apotheker', 'Apothekersassistent', 'Applicatieontwikkelaar', 'Arbeidsanalist', 'Arbeidsbemiddelaar', 'Arbeidsdeskundige', 'Arbeidsfysioloog', 'Arbeidsgeneesheer', 'Arbeidshygiënist', 'Archeoloog', 'Architect', 'Archivaris', 'Archivist', 'Arrangeur', 'Artdirector', 'Artiest', 'Arts', 'Assuradeur', 'Astrofysicus', 'Astroloog', 'Astronaut', 'Astronoom', 'Audioloog', 'Audiometrist', 'Audiotherapeut', 'Auditor', 'Autohandelaar', 'Automonteur', 'Autoplaatwerker', 'Autospuiter',
+ 'Bacterioloog', 'Badmeester', 'Baggermachinist', 'Baggermolenarbeider', 'Baker', 'Bakker', 'Baliemedewerker', 'Balletdanser', 'Ballroomdanser', 'Bandagist', 'Bandenmonteur', 'Bankbediende', 'Bankdirecteur', 'Banketbakker', 'Bankmakelaar', 'Bankwerker', 'Barbediende', 'Barhouder', 'Barman', 'Basketballer', 'Bassist', 'Beademingsassistent', 'Bedienaar', 'Bediener', 'Bedrijfsbrandweer', 'Bedrijfseconoom', 'Bedrijfshoofd', 'Bedrijfsjurist', 'Bedrijfskassier', 'Bedrijfskundige', 'Bedrijfsleermeester', 'Bedrijfsleider', 'Bedrijfsorganisatiedeskundige', 'Bedrijfspolitieagent', 'Bedrijfsrecherche', 'Bedrijfsverpleegkundige', 'Beeldapparatuurbediener', 'Beeldhouwer', 'Beenhouwer', 'Begeleider', 'Begrafenispersoneel', 'Begrotingscalculator', 'Behanger', 'Beheerder', 'Beiaardier', 'Bejaardenverzorgende', 'Belastingambtenaar', 'Belastingconsulent', 'Beleidsambtenaar', 'Beleidsmedewerker', 'Belichter', 'Bergingsduiker', 'Beroepskeuzeadviseur', 'Beroepsmilitair', 'Beroepssporter', 'Bestekschrijver', 'Besteksorteerder', 'Bestekzoeker', 'Bestuurder', 'Bestuurskundige', 'Betonmolenbaas', 'Betontimmerman', 'Betonstaalvlechter', 'Betonwerker', 'Beul', 'Beveiligingsapparatuur', 'Beveiligingsbeambte', 'Bewaarder', 'Bewaker', 'Bewegingstherapeut', 'Bezorger', 'Bibliothecaris', 'Bibliotheekassistent', 'Bierbrouwer', 'Bijenkorfvlechter', 'Bijenkweker', 'Bijkantoorhouder', 'Binderijpersoneel', 'Binnenhuisarchitect', 'Biochemicus', 'Biograaf', 'Bioloog', 'Bioscoopoperateur', 'Bitumineerder', 'Bloemist', 'Bloemkweker', 'Bloemschikker', 'Bloemsierkunstenaar', 'Bode', 'Boekbinder', 'Boekhouder', 'Boekillustrator', 'Boer', 'Bontkleermaker', 'Bontsnijder', 'Bookmaker', 'Boomchirurg', 'Boomkweker', 'Boomverzorger', 'Boordwerktuigkundige', 'Boormachinist', 'Boorpersoneel', 'Bootsman', 'Bosbaas', 'Bosbouwkundige', 'Boswachter', 'Botenbouwer', 'Bouwcalculator', 'Bouwhistoricus', 'Bouwkundig tekenaar', 'Bouwliftbediener', 'Bouwpromotor', 'Bouwopzichter', 'Bouwvakker', 'Bouwvaktimmerman', 'Brandmeester', 'Brandveiligheidsdeskundige', 'Brandwacht', 'Brandweerman', 'Brandweercommandant', 'Brandweeronderofficier', 'Breimachinesteller', 'Bromfietshersteller', 'Bronboorder', 'Buffetbediende', 'Buikspreker', 'Buitenbandenvulkaniseur', 'Buitendienstmedewerker', 'Burgemeester', 'Buschauffeur', 'Budgetcoach', 'Butler',
+ 'Cabaretier', 'Caféhouder', 'Cafetariamedewerker', 'Caissière', 'Calculator', 'Callgirl', 'Cameraman', 'Cardioloog', 'Cargadoor', 'Carrosseriebouwer', 'Cartograaf', 'Cellist', 'Chauffeur', 'Chef', 'Chemicus', 'Chiropodist', 'Chirurg', 'Chocolademaker', 'Chocolatier', 'Choreograaf', 'Cilindermaker', 'Cineast', 'Cipier', 'Circusartiest', 'Circusdirecteur', 'Civiel ingenieur', 'Classicus', 'Clown', 'Coach', 'Codeur', 'Collationist', 'Colporteur', 'Columnist', 'Combinatiefunctionaris', 'Commentator', 'Commissaris', 'Commissionair', 'Completeerder', 'Compliance officer', 'Componist', 'Computeroperator', 'Computerprogrammeur', 'Conciërge', 'Conducteur', 'Conservator', 'Constructeur', 'Constructiebankwerker', 'Constructiesamenbouwer', 'Constructieschilder', 'Consulent', 'Contactlensspecialist', 'Controleur', 'Controller', 'Coördinator', 'Copywriter', 'Counselor', 'Corrector', 'Correpetitor', 'Correspondent', 'Creatief therapeut', 'Crècheleidster', 'Criminoloog', 'Criticus', 'Croupeur', 'Croupier', 'Cultuurtechnicus', 'Curator', 'Cursuscoördinator', 'Cursusleider',
+ 'Dakdekker', 'Dakpannenvormer', 'Danser', 'Dansleraar', 'Database administrator', 'Debitant', 'Decaan', 'Declarant', 'Decoratieschilder', 'Decorschilder', 'Degelpersdrukker', 'Dekkledenmaker', 'Dekpersoneel', 'Delfstoffenbewerker', 'Demonstrateur', 'Dermatoloog', 'Deskundige', 'Detailhandelaar', 'Detective', 'Deurenzetter', 'Deurwaarder', 'Dichter', 'Dieetkok', 'Dienstbode', 'Dienstleider', 'Diepdrukgraveur', 'Dierenarts', 'Dierenartsassistent', 'Dierenasielhouder', 'Dierentrainer', 'Dierenverzorger', 'Diëtist', 'Diplomaat', 'Directeur', 'Directieassistent', 'Directiesecretaresse', 'Dirigent', 'Diskjockey', 'Districtschef', 'Districtsverpleegkundige', 'Docent', 'Documentalist', 'Documentencontroleur', 'Dokmeester', 'Doktersassistent', 'Dominee', 'Doodgraver', 'Douaneambtenaar', 'Dozenmaker', 'Draaier', 'Dramadocent', 'Dramatherapeut', 'Drogist', 'Drukker', 'Drukkerijbinder', 'Drukwerkvoorbereiders', 'Drummer', 'Duiker',
+ 'Econoom', 'Ecotechnisch manager', 'Edelmetaalbewerker', 'Edelsmid', 'Editor', 'EDP-auditor', 'Egyptoloog', 'Eindredacteur', 'Elektricien', 'Elektromonteur', 'Elektronicamonteur', 'Elektronicus', 'Elektrotechnicus', 'Encyclopedist', 'Enquêteur', 'Ergonoom', 'Ergotherapeut', 'Ertskundige', 'Essayeur', 'Essayist', 'Etaleur', 'Etnograaf', 'Etnoloog', 'Etymoloog', 'Evangelist', 'Examinator', 'Expediteur', 'Explantatiemedewerker',
+ 'Fabrikant', 'Facilitair Manager', 'Facturist', 'Farmacoloog', 'Fietsenmaker', 'Fijnbankwerker', 'Filiaalhouder', 'Filmer', 'Filmregisseur', 'Filosoof', 'Filterreiniger', 'Financieel analist', 'Fluitenbouwer', 'Fotograaf', 'Fotograveur', 'Fotolaborant', 'Fotolaboratoriumbediende', 'Fotolithograaf', 'Fotoredacteur', 'Framebouwer', 'Frezer', 'Fruitteler', 'Fysicus', 'Fysioloog', 'Fysiotherapeut',
+ 'Galvaniseur', 'Game Designer', 'Garagehouder', 'Garderobejuffrouw', 'Garnalenpeller', 'Gasleidinglegger', 'Gastvrouw', 'Gecommitteerde', 'Gedeputeerde', 'Gemeentesecretaris', 'Geneeskundige', 'Generaal', 'Geodeet', 'Geograaf', 'Geoloog', 'Gerant', 'Gerechtsdeurwaarder', 'Gereedschapsmaker', 'Gereedschapssmid', 'Geschiedkundige', 'Gevangenbewaarder', 'Gezaghebber', 'Gezagvoerder', 'Gezondheidsbegeleider', 'Gezondheidsfysicus', 'Gezondheidstechnicus', 'Gidsenschrijver', 'Gieterijtechnicus', 'Gietmachinebediener', 'Gigolo', 'Gipsverbandmeester', 'Gitarist', 'Glasblazer', 'Glasgraveur', 'Glasslijper', 'Glaszetter', 'Glazenhaler', 'Glazenmaker', 'Glazenwasser', 'Goochelaar', 'Goudsmid', 'Goudzoeker', 'Grafdelver', 'Graficus', 'Grafisch ontwerper', 'Grafoloog', 'Graveur', 'Griendwerker', 'Griffier', 'Grimeur', 'Groenteteler', 'Groepsleider', 'Groepsvervoer', 'Grondsteward', 'Grondstewardess', 'Grondwerker', 'Groothandelaar', 'Gymleraar', 'Gynaecoloog',
+ 'Handelaar', 'Handelscorrespondent', 'Handwever', 'Havenarbeider', 'Havenmeester', 'Heemraad', 'Heftruckchauffeur', 'Heibaas', 'Heier', 'Heilpedagoog', 'Heilsoldaat', 'Helpdeskmedewerker', 'Herbergier', 'Hijsmachinist', 'Historicus', 'Hoefsmid', 'Hoekman', 'Hofmeester', 'Homeopaat', 'Hondenfokker', 'Hondentoiletteerder', 'Hondentrimmer', 'Hoofd', 'Hoofdambtenaar', 'Hoofdcontroleur', 'Hoofdredacteur', 'Hoofduitvoerder', 'Hoofdverpleegkundige', 'Hoofdwerktuigkundige', 'Hoogleraar', 'Hoornist', 'Hoorspelregisseur', 'Horlogemaker', 'Hostess', 'Hotelier', 'Hotelmanager', 'Hotelportier', 'Houtbewerker', 'Houtmodelmaker', 'Houtsnijder', 'Houtvester', 'Houtwarensamensteller', 'Hovenier', 'Huidtherapeut', 'Huisarts', 'Huisbaas', 'Huisbewaarder', 'Huishoudhulp', 'Huishoudster', 'Huisschilder', 'Hulparbeider', 'Hulpautomonteur', 'Hulpkok', 'Hulpverkoper', 'Huurmoordenaar', 'Hydroloog',
+ 'IJscoman', 'IJzervlechter', 'Illusionist', 'Illustrator', 'Imam', 'Imker', 'Importeur', 'Impresario', 'Industrieel ontwerper', 'Ingenieur', 'Inkoper', 'Inrijger', 'Inseminator', 'Inspecteur', 'Installateur', 'Instructeur', 'Instrumentalist', 'Instrumentmaker', 'Interieurarchitect', 'Interieurverzorger', 'Interne accountant', 'Internist',
+ 'Jachtopzichter', 'Jager', 'Jongleur', 'Journalist', 'Justitieel Aanklager', 'Juwelier', 'Judoleraar',
+ 'Kaartenzetter', 'Kaasmaker', 'Kabelsplitser', 'Kabelwerker', 'Kanaalmeester', 'Kantonnier', 'Kantoorhulp', 'Kapitein', 'Kapper', 'Kappershulp', 'Kardinaal', 'Karteerder', 'Kartonnagewerker', 'Kassamedewerker', 'Kassier', 'Kelner', 'Keizer', 'Keramist', 'Kermisexploitant', 'Kernmaker', 'Kerstman', 'Ketelmetselaar', 'Keukenassistent', 'Keukenknecht', 'Keurder', 'Keuringsambtenaar', 'Keurmeester', 'Kinderverzorgende', 'Kleermaker', 'Kleidelver', 'Kleinhandelaar', 'Klerk', 'Kleuterleider', 'Klokkenmaker', 'Klompenmaker', 'Kloosterling', 'Kno-arts', 'Koerier', 'Koetsier', 'Kok', 'Komiek', 'Kompel', 'Kooiker', 'Kooiman', 'Koordirigent', 'Koperslager', 'Kostendeskundige', 'Koster', 'Kostprijscalculator', 'Kozijnenmaker', 'Kraamverzorgende', 'Kraamhulp', 'Kraanmachinist', 'Kredietanalist', 'Kredietbeoordelaar', 'Kruidendokter', 'Kruier', 'Kuiper', 'Kunstcriticus', 'Kunstenaar', 'Kunstschilder', 'Kustlichtwachter', 'Kwitantieloper',
+ 'Laadschopbestuurder', 'Laborant', 'Laboratoriumbediende', 'Lader', 'Ladingmeester', 'Lakei', 'Landarbeider', 'Landbouwer', 'Landbouwkundige', 'Landbouwmachinebestuurder', 'Landbouwmilieubeheer', 'Landbouwwerktuigenhersteller', 'Landmeetkundige', 'Landmeettechnicus', 'Landmeter', 'Landschapsarchitect', 'Landschapsbeheer', 'Lasinspecteur', 'Lasser', 'Lastechnicus', 'Lector', 'Ledertechnoloog', 'Lederwarenmaker', 'Leerbewerker', 'Leerkracht', 'Leeuwentemmer', 'Legionair', 'Leidekker', 'Leidinggevende', 'Leraar', 'Letterkundige', 'Leurder', 'Lichtdrukker', 'Lichtmatroos', 'Lijstenmaker', 'Linktrainer', 'Literator', 'Literatuurcriticus', 'Literatuuronderzoeker', 'Logopedist', 'Logotherapeut', 'Lokettist', 'Longfunctieassistent', 'Loodgieter', 'Loods', 'Loodschef', 'Loonadministrateur', 'Loopbaancoach', 'Losser', 'Luchtverkeersleider',
+ 'Maatnemer', 'Maatschappelijk medewerker', 'Maatschappelijk werker', 'Maatschoenmaker', 'Machine vouwer', 'Machinebankwerker', 'Machinebediende', 'Machinesteller', 'Manegehouder', 'Machinist', 'Magazijnbediende', 'Magazijnbeheerder', 'Magazijnknecht', 'Magnetiseur', 'Makelaar', 'Managementassistent', 'Manager', 'Mandenmaker', 'Mannequin', 'Manueel therapeut', 'Marconist', 'Marinier', 'Maritiem Officier', 'Marechaussee', 'Marketingadviseur', 'Marketingassistent', 'Marktkoopman', 'Masseur', 'Mathematicus', 'Matroos', 'Mattenmaker', 'Medewerker', 'Mediatrainer', 'Meester restauratiestukadoor', 'Meettechnicus', 'Melkboer', 'Metaalbewerker', 'Metaalbrander', 'Metaalbuiger', 'Metaalfrezer', 'Metaalgieter', 'Metaalkundige', 'Meteoroloog', 'Meteropnemer', 'Metselaar', 'Meubelbeeldhouwer', 'Meubelmaker', 'Meubelstoffeerder', 'Meubelstoffennaaister', 'Meubeltekenaar', 'Mijnbouwkundige', 'Middenstander', 'Mijnwerker', 'Milieudeskundige', 'Milieuhygiënist', 'Militair', 'Mimespeler', 'Min', 'Mineralenbewerker', 'Minister', 'Minister-president', 'Model', 'Modelmaker', 'Modelnaaister', 'Molenaar', 'Modeontwerper', 'Mondhygiënist', 'Monnik', 'Monteur', 'Mosselman', 'Motordemonteur', 'Motordrijver', 'Motormonteur', 'Mouldroomtechnicus', 'Munter', 'Muntmeester', 'Museumconservator', 'Museumgids', 'Museumhouder', 'Museummedewerker', 'Musicus', 'Muziekinstrumentenmaker', 'Muziekprogrammeur',
+ 'Naaister', 'Nachtwaker', 'Nagelstyliste', 'Nasynchronisatieregisseur', 'Natuurkundeleraar', 'Natuurkundige', 'Natuurwetenschapper', 'Navigator', 'Neonatoloog', 'Nettenboeter', 'Netwerkbeheerder', 'Neurochirurg', 'Neuroloog', 'Neurofysioloog', 'Nieuwslezer', 'Nijverheidsconsulent', 'Nko-arts', 'Nopster', 'Notaris', 'Nucleair geneeskundige',
+ 'Ober', 'Oberkelner', 'Objectleider', 'Oceanoloog', 'Octrooigemachtigde', 'Officier', 'Officier van justitie', 'Olieslager', 'Omroeper', 'Omsteller', 'Oncoloog', 'Onderhoudsloodgieter', 'Onderhoudsman', 'Onderhoudsmedewerker', 'Onderhoudsmonteur', 'Ondernemer', 'Onderofficier', 'Ondersteunende', 'Onderwaterwerker', 'Onderwijsassistent', 'Onderwijstechnicus', 'Onderwijzer', 'Onderzoeker', 'Onderzoeker in opleiding', 'Ontdekkingsreiziger', 'Ontmijner', 'Ontvlekker', 'Ontwerper', 'Oogarts', 'Operateur', 'Operatieassistent', 'Operational auditor', 'Operator', 'Opkoper', 'Opperman', 'Opsporingsambtenaar', 'Opsporingsingenieur', 'Opticien', 'Optometrist', 'Opvoedingsconsulent', 'Opvoedingsvoorlichter', 'Opzichter', 'Organist', 'Organizer', 'Ornitholoog', 'Orthodontist', 'Orthopedagoog', 'Orthopeed', 'Orthoptist', 'ORL-arts', 'Osteopaat', 'Ouvreuse', 'Ovenman',
+ 'Paardenfokker', 'Pakhuischef', 'Paleontoloog', 'Palfrenier', 'Pandjesbaas', 'Papierschepper', 'Papiervernisser', 'Parkeerwachter', 'Parketvloerenlegger', 'Parketwacht', 'Pastoor', 'Paswerker', 'Patholoog', 'Patholoog-anatoom', 'Patissier', 'Patroonmaker', 'Patroontekenaar', 'Pedagoog', 'Pedicure', 'Perronopzichter', 'Perser', 'Personeelsfunctionaris', 'Peuterwerker', 'Pianist', 'Pianostemmer', 'Piccolo', 'Pijpfitter', 'Pikeur', 'Piloot', 'Plaatwerker', 'Planner', 'Plantenteeltdeskundige', 'Plantsoenmedewerker', 'Plasticvormer', 'Pleitbezorger', 'Poelier', 'Poepruimer', 'Poetser', 'Podiatrist', 'Podoloog', 'Poffertjesbakker', 'Polisopmaker', 'Politicus', 'Politieagent', 'Politiecommissaris', 'Politie-inspecteur', 'Politiek analist', 'Pontschipper', 'Pooier', 'Porder', 'Portier', 'Portretfotograaf', 'Postbediende', 'Postbesteller', 'Postbode', 'Postcommandant', 'Postexpediteur', 'Postsorteerder', 'Pottenbakker', 'Predikant', 'Premier', 'Presentator', 'President', 'Priester', 'Probleemanalist', 'Procesmanager', 'Procesoperator', 'Procureur', 'Procureur des Konings', 'Producer', 'Productenmaker', 'Productensorteerder', 'Productiebegeleider', 'Productieleider', 'Productiemedewerker', 'Productieplanner', 'Professor', 'Professioneel worstelaar', 'Programmamaker', 'Programmeur', 'Projectadviseur', 'Projectleider', 'Projectmanager', 'Projectontwikkelaar', 'Promovendus', 'Prostitué', 'Prostituee', 'Pruikenmaker', 'Psychiater', 'Psychologisch assistent', 'Psycholoog', 'Psychotherapeut', 'Psychomotorisch kindertherapeut', 'Purser', 'Putjesschepper',
+ 'Quarantaine-beambte', 'Quizmaster', 'Quantity surveyor',
+ 'Raadsman', 'Radarwaarnemer', 'Radiotherapeutisch laborant', 'Radiograaf', 'Radiolaborant', 'Radiotechnicus', 'Radiotelegrafist', 'Rangeerder', 'Recensent', 'Receptionist', 'Recherchekundige', 'Rechercheur', 'Rechtbanktekenaar', 'Rechter', 'Reclame-ontwerper', 'Reclameacquisiteur', 'Reclamedeskundige', 'Reclametekenaar', 'Redacteur', 'Redactiechef', 'Regisseur', 'Registeraccountant', 'Reiniger', 'Reinigingsdienstarbeider', 'Reisleider', 'Reisprogrammeur', 'Reisverkoper', 'Rekenaar', 'Rekwisietenmaker', 'Rentmeester', 'Reparateur', 'Ridder', 'Repetitor', 'Reproductietekenaar', 'Restauranthouder', 'Rietmeubelmaker', 'Rietwerker', 'Rijtuigspuiter', 'Rijwielhersteller', 'Rolluikentimmerman', 'Rondvaartgids', 'Röntgenoloog', 'Ruimtevaarder',
+ 'Samensteller', 'Saunahouder', 'Scenarioschrijver', 'Schaaldierenkweker', 'Schaaldierenpeller', 'Schaapherder', 'Schadecorrespondent', 'Schadetaxateur', 'Schakelbordwachter', 'Schaker', 'Schapenscheerder', 'Scharensliep', 'Scheepskapitein', 'Scheepskok', 'Scheepspurser', 'Scheepsschilder', 'Scheepstimmerman', 'Scheidsrechter', 'Scheikundige', 'Schillenboer', 'Schipper', 'Schoenfabrieksarbeider', 'Schoenhersteller', 'Schoenmaker', 'Schoolbegeleider', 'Schooldecaan', 'Schooldirecteur', 'Schoolinspecteur', 'Schoonheidsmasseur', 'Schoonheidsspecialiste', 'Schoonmaker', 'Schoorsteenveger', 'Schotter', 'Schrijftolk', 'Schrijver', 'Schuurder', 'Secretaresse', 'Secretariaatsmedewerker', 'Secretaris', 'Seismoloog', 'Seizoenarbeider', 'Seksuoloog', 'Selecteur', 'Sergeant', 'Seroloog', 'Serveerster', 'Setdresser', 'Sigarenmaker', 'Sinoloog', 'Sjorder', 'Sjouwer', 'Slachter', 'Slager', 'Slagwerker', 'Slijter', 'Sloper', 'Sluiswachter', 'Smeerder', 'Smelter', 'Smid', 'Snackbarbediende', 'Snackbarhouder', 'Snijder', 'Sociotherapeut', 'Softwareontwikkelaar', 'Soldaat', 'Soldeerder', 'Sommelier', 'Sondeerder', 'Songwriter', 'Souschef', 'Spoeler', 'Souffleur', 'Specialist', 'Spelersmakelaar', 'Speltherapeut', 'Spindoppenmonteur', 'Spion', 'Sportinstructeur', 'Stadsomroeper', 'Stadstimmerman', 'Stanser', 'Stationschef', 'Statisticus', 'Stedenbouwkundige', 'Steenbewerker', 'Steenfabrikant', 'Steenhouwer', 'Steenzetter', 'Steigerbouwer', 'Steigermaker', 'Stenotypist', 'Stereotypeur', 'Sterilisatieassistent', 'Stewardess', 'Stoelenmatter', 'Stoffeerder', 'Storingsmonteur', 'Straatverkoper', 'Strandjutter', 'Stratenmaker', 'Stripper', 'Stucwerker', 'Stukadoor', 'Stuurman', 'Stuwadoor', 'Stylist', 'Stypengalvaniseur', 'Surinamist', 'Systeemanalist', 'Systeembeheerder', 'Systeemontwerper', 'Systeemprogrammeur',
+ 'Takelaar', 'Tandarts', 'Tandartsassistente', 'Tandtechnicus', 'Tapper', 'Taxichauffeur', 'Taxidermist', 'Technicus', 'Technisch Oogheelkundig Assistent', 'Technisch tekenaar', 'Tegelzetter', 'Tekenaar', 'Tekstschrijver', 'Telecommunicatiemonteur', 'Telefoniste', 'Telegrafist', 'Televisieregisseur', 'Televisietechnicus', 'Telexist', 'Tennisser', 'Terrazzovloerenlegger', 'Terreinchef', 'Tester', 'Textieldrukker', 'Textiellaborant', 'Textielopmaker', 'Textielproductenmaker', 'Theateragent', 'Theatertechnicus', 'Therapeut', 'Timmerman', 'Tingieter', 'Toetsenist', 'Tolk', 'Toneelfigurant', 'Toneelmeester', 'Toneelregisseur', 'Toneelschrijver', 'Toneelspeler', 'Torenkraanmonteur', 'Totalisatormedewerker', 'Touringcarchauffeur', 'Touwslager', 'Traceur', 'Trainingsacteur', 'Traiteur', 'Trambestuurder', 'Transportplanner', 'Treinbestuurder', 'Treinconducteur', 'Treindienstleider', 'Treinduwer', 'Treinmachinist', 'Trekkerchauffeur', 'Tuiger', 'Tuinarchitect', 'Tuinder', 'Tuinman', 'Typiste',
+ 'Uitgever', 'Uitsmijter', 'Uitvaartbegeleider', 'Uitvinder', 'Uitvoerder', 'Uroloog', 'Uurwerkmaker',
+ 'Vakkenvuller', 'Valet', 'Veearts', 'Veehouder', 'Veeverloskundige', 'Veiligheidsbeambte', 'Veilinghouder', 'Verfspuiter', 'Vergaderstenograaf', 'Verhuizer', 'Verhuurder', 'Verkeersdienstsimulator', 'Verkeersinspecteur', 'Verkeerskundige', 'Verkeersleider', 'Verkeersonderzoeker', 'Verkeersplanoloog', 'Verkoopchef', 'Verkoopstyliste', 'Verkoper', 'Verloskundige', 'Verpleeghulp', 'Verpleegkundige', 'Verslaggever', 'Verspaner', 'Vertaler', 'Vertegenwoordiger', 'Vervoer', 'Vervoersinspecteur', 'Verwarmingsinstallateur', 'Verwarmingsmonteur', 'Verzekeringsagent', 'Verzekeringsdeskundige', 'Verzekeringsinspecteur', 'Verzorgende', 'Vicaris', 'Videoclipregisseur', 'Videojockey', 'Vioolbouwer', 'Violist', 'Vinoloog', 'Viroloog', 'Visagiste', 'Visfileerder', 'Visser', 'Vj', 'Vleeswarenmaker', 'Vlieger', 'Vliegtuigplaatwerker', 'Vliegtuigtimmerman', 'Vloerlegger', 'Voedingsmiddelentechnoloog', 'Voedingsvoorlichter', 'Voeger', 'Voertuigbekleder', 'Voetballer', 'Volder of Voller', 'Voorganger', 'Voorlichter', 'Voorlichtingsfunctionaris', 'Voorraadadministrateur', 'Voorzitter', 'Vormende', 'Vormenmaker', 'Vormer', 'Vormgever', 'Vrachtwagenchauffeur', 'Vuilnisman', 'Vulkanoloog', 'Vuurspuwer', 'Vuurtorenwachter', 'Vroedvrouw',
+ 'Waard', 'Waardijn', 'Waarzegger', 'Wachtcommandant', 'Wachter', 'Wachtmeester', 'Wagenmaker', 'Wasser', 'Wasserettehouder', 'Waterbouwkundige', 'Webdesigner', 'Weefmachinesteller', 'Weerkundige', 'Weerpresentator', 'Wegenbouwarbeider', 'Wegenbouwmachinist', 'Wegmarkeerder', 'Werkleider-dokmeester', 'Werktuigbouwkundige', 'Werktuigkundige', 'Werkvoorbereider', 'Wethouder', 'Wijkmeester', 'Wijnboer', 'Winkelbediende', 'Winkelier', 'Wiskundige', 'Wisselkassier', 'Wisselmaker', 'Woonbegeleider',
+ 'Xylofonist',
+ 'Yogaleraar',
+ 'Zaakwaarnemer', 'Zakenman', 'Zanger', 'Zeefdrukker', 'Zeeman', 'Zeepzieder', 'Zeilmaker', 'Zelfstandig ondernemer', 'Zetter', 'Ziekenhuisapotheker', 'Ziekenhuishygiënist', 'Ziekenverzorgende', 'Zilversmid', 'Zweminstructeur', 'Zoöloog',
);
- protected static $companySuffix = array('VOF', 'CV', 'LLP', 'BV', 'NV', 'IBC', 'CSL', 'EESV', 'SE', 'CV', 'Stichting', '& Zonen', '& Zn');
+ protected static $companySuffix = array(
+ 'VOF', 'CV', 'LLP', 'BV', 'NV', 'IBC', 'CSL','EESV', 'SE', 'CV', 'Stichting', '& Zonen', '& Zn'
+ );
+
+ protected static $product = array(
+ 'Keuken', 'Media', 'Meubel', 'Sanitair', 'Elektronica', 'Schoenen',
+ 'Zorg', 'Muziek', 'Audio', 'Televisie', 'Pasta', 'Lunch', 'Boeken', 'Cadeau', 'Kunst', 'Tuin', 'Klus',
+ 'Video', 'Sieraden', 'Kook', 'Woon', 'Pizza', 'Mode', 'Haar', 'Kleding', 'Antiek', 'Interieur', 'Gadget',
+ 'Foto', 'Computer', 'Witgoed', 'Bruingoed', 'Broeken', 'Pakken', 'Maatpak', 'Fietsen', 'Speelgoed',
+ 'Barbecue', 'Sport', 'Fitness', 'Brillen', 'Bakkers', 'Drank', 'Zuivel', 'Pret', 'Vis', 'Wijn', 'Salade',
+ 'Terras', 'Borrel', 'Dieren', 'Aquaria', 'Verf', 'Behang', 'Tegel', 'Badkamer', 'Decoratie'
+ );
+
+ protected static $type = array(
+ 'Markt', 'Kampioen', 'Expert', 'Concurrent', 'Shop', 'Expert', 'Magazijn',
+ 'Dump', 'Store', 'Studio', 'Boulevard', 'Fabriek', 'Groep', 'Huis', 'Salon', 'Vakhuis', 'Winkel', 'Gigant',
+ 'Reus', 'Plaza', 'Park', 'Tuin'
+ );
+
+ protected static $store = array(
+ 'Boekhandel', 'Super', 'Tabakzaak', 'Schoenmaker', 'Kaashandel', 'Slagerij',
+ 'Smederij', 'Bakkerij', 'Bierbrouwer', 'Kapperszaak', 'Groenteboer', 'Bioboer', 'Fietsenmaker', 'Opticien',
+ 'Café', 'Garage'
+ );
+
+
+ /**
+ * @example 'Fietsenmaker Zijlemans'
+ *
+ * @return string
+ */
+ public function company()
+ {
+ $determinator = static::numberBetween(0, 2);
+ switch ($determinator) {
+ case 0:
+ $companyName = static::randomElement(static::$product) . ' ' . static::randomElement(static::$type);
+ break;
+ case 1:
+ $companyName = static::randomElement(static::$product) . strtolower(static::randomElement(static::$type));
+ break;
+ case 2:
+ $companyName = static::randomElement(static::$store) . ' ' . $this->generator->lastName;
+ break;
+ }
+
+ if (0 !== static::numberBetween(0, 1)) {
+ return $companyName . ' ' . static::randomElement(static::$companySuffix);
+ }
+
+ return $companyName;
+ }
/**
* Belasting Toegevoegde Waarde (BTW) = VAT
*
* @example 'NL123456789B01'
*
- * @see (dutch) http://www.belastingdienst.nl/wps/wcm/connect/bldcontentnl/belastingdienst/zakelijk/btw/administratie_bijhouden/btw_nummers_controleren/uw_btw_nummer
- *
+ * @see http://www.belastingdienst.nl/wps/wcm/connect/bldcontentnl/belastingdienst/zakelijk/btw/administratie_bijhouden/btw_nummers_controleren/uw_btw_nummer
*
* @return string VAT Number
*/
public static function vat()
{
return sprintf("%s%d%s%d", 'NL', self::randomNumber(9, true), 'B', self::randomNumber(2, true));
-
}
/**
* Alias dutch vat number format
+ *
+ * @return string
*/
public static function btw()
{
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/nl_NL/Person.php b/vendor/fzaninotto/faker/src/Faker/Provider/nl_NL/Person.php
index 0bd09a44..a3d7dc8a 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/nl_NL/Person.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/nl_NL/Person.php
@@ -26,7 +26,7 @@ class Person extends \Faker\Provider\Person
'mr.', 'dr.', 'ir.', 'drs', 'bacc.', 'kand.', 'dr.h.c.', 'prof.', 'ds.', 'ing.', 'bc.'
);
- private static $suffix = array(
+ protected static $suffix = array(
'BA', 'Bsc', 'LLB', 'LLM', 'MA', 'Msc', 'MPhil', 'D', 'PhD', 'AD', 'B', 'M'
);
@@ -116,7 +116,7 @@ class Person extends \Faker\Provider\Person
'Huijzing', 'Huisman', 'Huls', 'Hulshouts', 'Hulskes', 'Hulst', 'van Hulten', 'Huurdeman', 'van het Heerenveen',
'Jaceps', 'Jacobi', 'Jacobs', 'Jacquot', 'de Jager', 'Jans', 'Jansdr', 'Janse', 'Jansen', 'Jansen', 'Jansse',
'Janssen', 'Janssens', 'Jasper dr', 'Jdotte', 'Jeggij', 'Jekel', 'Jerusalem', 'Jochems',
- 'Jones', 'de Jong', 'Jonkman', 'Joosten', 'Jorlink', 'Jorrisen', 'van Jumiège', 'Jurrijens', 'Köster',
+ 'Jones', 'de Jong', 'Jonkman', 'Joosten', 'Jorlink', 'Jorissen', 'van Jumiège', 'Jurrijens', 'Köster',
'van der Kaay', 'de Kale', 'Kallen', 'Kalman', 'Kamp', 'Kamper', 'Karels', 'Kas', 'van Kasteelen', 'Kathagen',
'Keijser', 'de Keijser', 'Keijzer', 'de Keijzer', 'Keltenie', 'van Kempen', 'Kerkhof', 'Ketel', 'Ketting',
'der Kijnder', 'van der Kint', 'Kirpenstein', 'Kisman', 'van Klaarwater', 'van de Klashorst', 'Kleibrink',
@@ -288,7 +288,7 @@ class Person extends \Faker\Provider\Person
*/
public static function titleMale()
{
- return static::title();
+ return static::randomElement(static::$title);
}
/**
@@ -296,7 +296,7 @@ class Person extends \Faker\Provider\Person
*/
public static function titleFemale()
{
- return static::title();
+ return static::randomElement(static::$title);
}
/**
@@ -342,7 +342,6 @@ class Person extends \Faker\Provider\Person
} else {
$nr[0] = 1;
$nr[1]++;
-
}
}
return implode('', array_reverse($nr));
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/pt_BR/Payment.php b/vendor/fzaninotto/faker/src/Faker/Provider/pt_BR/Payment.php
index 9643d685..1a525613 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/pt_BR/Payment.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/pt_BR/Payment.php
@@ -69,4 +69,78 @@ class Payment extends \Faker\Provider\Payment
{
return static::iban($countryCode, $prefix, $length);
}
+
+
+ /**
+ * @see list of Brazilians banks (2018-02-15), source: https://pt.wikipedia.org/wiki/Lista_de_bancos_do_Brasil
+ */
+ protected static $banks = array(
+ 'BADESUL Desenvolvimento S.A. – Agência de Fomento/RS',
+ 'Banco Central do Brasil',
+ 'Banco da Amazônia',
+ 'Banco de BrasÃlia',
+ 'Banco de Desenvolvimento de Minas Gerais',
+ 'Banco de Desenvolvimento do EspÃrito Santo',
+ 'Banco de Desenvolvimento do Paraná',
+ 'Banco do Brasil',
+ 'Banco do Estado de Sergipe Banese Estadual',
+ 'Banco do Estado do EspÃrito Santo Banestes',
+ 'Banco do Estado do Pará',
+ 'Banco do Estado do Rio Grande do Sul',
+ 'Banco do Nordeste do Brasil',
+ 'Banco Nacional de Desenvolvimento Econômico e Social',
+ 'Banco Regional de Desenvolvimento do Extremo Sul',
+ 'Caixa Econômica Federal',
+ 'Banco ABN Amro S.A.',
+ 'Banco Alfa',
+ 'Banco Banif',
+ 'Banco BBM',
+ 'Banco BMG',
+ 'Banco Bonsucesso',
+ 'Banco BTG Pactual',
+ 'Banco Cacique',
+ 'Banco Caixa Geral - Brasil',
+ 'Banco Citibank',
+ 'Banco Credibel',
+ 'Banco Credit Suisse',
+ 'Góis Monteiro & Co',
+ 'Banco Fator',
+ 'Banco Fibra',
+ 'Agibank',
+ 'Banco Guanabara',
+ 'Banco Industrial do Brasil',
+ 'Banco Industrial e Comercial',
+ 'Banco Indusval',
+ 'Banco Inter',
+ 'Banco Itaú BBA',
+ 'Banco ItaúBank',
+ 'Banco Itaucred Financiamentos',
+ 'Banco Mercantil do Brasil',
+ 'Banco Modal Modal',
+ 'Banco Morada',
+ 'Banco Pan',
+ 'Banco Paulista',
+ 'Banco Pine',
+ 'Banco Renner',
+ 'Banco Ribeirão Preto',
+ 'Banco Safra',
+ 'Banco Santander',
+ 'Banco Sofisa',
+ 'Banco Topázio',
+ 'Banco Votorantim',
+ 'Bradesco Bradesco',
+ 'Itaú Unibanco',
+ 'Banco Original',
+ 'Banco Neon',
+ 'Nu Pagamentos S.A',
+ 'XP Investimentos Corretora de Câmbio TÃtulos e Valores Mobiliários S.A',
+ );
+
+ /**
+ * @example 'Banco Neon'
+ */
+ public static function bank()
+ {
+ return static::randomElement(static::$banks);
+ }
}
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/pt_PT/Address.php b/vendor/fzaninotto/faker/src/Faker/Provider/pt_PT/Address.php
index a6e10099..d804ff2c 100644
--- a/vendor/fzaninotto/faker/src/Faker/Provider/pt_PT/Address.php
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/pt_PT/Address.php
@@ -4,7 +4,7 @@ namespace Faker\Provider\pt_PT;
class Address extends \Faker\Provider\Address
{
- protected static $streetPrefix = array('Av.', 'Avenida', 'R.', 'Rua', 'Travessa', 'Largo');
+ protected static $streetPrefix = array('Av.', 'Avenida', 'R.', 'Rua', 'Tv.', 'Travessa', 'Lg.', 'Largo');
protected static $streetNameFormats = array(
'{{streetPrefix}} {{lastName}}',
diff --git a/vendor/fzaninotto/faker/src/Faker/Provider/pt_PT/Company.php b/vendor/fzaninotto/faker/src/Faker/Provider/pt_PT/Company.php
new file mode 100644
index 00000000..971d18f5
--- /dev/null
+++ b/vendor/fzaninotto/faker/src/Faker/Provider/pt_PT/Company.php
@@ -0,0 +1,16 @@
+ 21,
'N' => 22,
'O' => 35,
- 'p' => 23,
+ 'P' => 23,
'Q' => 24,
'T' => 27,
'U' => 28,
diff --git a/vendor/fzaninotto/faker/test/Faker/Calculator/IbanTest.php b/vendor/fzaninotto/faker/test/Faker/Calculator/IbanTest.php
deleted file mode 100644
index 197048e5..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Calculator/IbanTest.php
+++ /dev/null
@@ -1,306 +0,0 @@
-assertEquals($checksum, Iban::checksum($iban), $iban);
- }
-
- public function validatorProvider()
- {
- return array(
- array('AL47212110090000000235698741', true),
- array('AD1200012030200359100100', true),
- array('AT611904300234573201', true),
- array('AZ21NABZ00000000137010001944', true),
- array('BH67BMAG00001299123456', true),
- array('BE68539007547034', true),
- array('BA391290079401028494', true),
- array('BR7724891749412660603618210F3', true),
- array('BG80BNBG96611020345678', true),
- array('CR0515202001026284066', true),
- array('HR1210010051863000160', true),
- array('CY17002001280000001200527600', true),
- array('CZ6508000000192000145399', true),
- array('DK5000400440116243', true),
- array('DO28BAGR00000001212453611324', true),
- array('EE382200221020145685', true),
- array('FO6264600001631634', true),
- array('FI2112345600000785', true),
- array('FR1420041010050500013M02606', true),
- array('GE29NB0000000101904917', true),
- array('DE89370400440532013000', true),
- array('GI75NWBK000000007099453', true),
- array('GR1601101250000000012300695', true),
- array('GL8964710001000206', true),
- array('GT82TRAJ01020000001210029690', true),
- array('HU42117730161111101800000000', true),
- array('IS140159260076545510730339', true),
- array('IE29AIBK93115212345678', true),
- array('IL620108000000099999999', true),
- array('IT60X0542811101000000123456', true),
- array('KZ86125KZT5004100100', true),
- array('KW81CBKU0000000000001234560101', true),
- array('LV80BANK0000435195001', true),
- array('LB62099900000001001901229114', true),
- array('LI21088100002324013AA', true),
- array('LT121000011101001000', true),
- array('LU280019400644750000', true),
- array('MK07250120000058984', true),
- array('MT84MALT011000012345MTLCAST001S', true),
- array('MR1300020001010000123456753', true),
- array('MU17BOMM0101101030300200000MUR', true),
- array('MD24AG000225100013104168', true),
- array('MC5811222000010123456789030', true),
- array('ME25505000012345678951', true),
- array('NL91ABNA0417164300', true),
- array('NO9386011117947', true),
- array('PK36SCBL0000001123456702', true),
- array('PL61109010140000071219812874', true),
- array('PS92PALS000000000400123456702', true),
- array('PT50000201231234567890154', true),
- array('QA58DOHB00001234567890ABCDEFG', true),
- array('RO49AAAA1B31007593840000', true),
- array('SM86U0322509800000000270100', true),
- array('SA0380000000608010167519', true),
- array('RS35260005601001611379', true),
- array('SK3112000000198742637541', true),
- array('SI56263300012039086', true),
- array('ES9121000418450200051332', true),
- array('SE4550000000058398257466', true),
- array('CH9300762011623852957', true),
- array('TN5910006035183598478831', true),
- array('TR330006100519786457841326', true),
- array('AE070331234567890123456', true),
- array('GB29NWBK60161331926819', true),
- array('VG96VPVG0000012345678901', true),
- array('YY24KIHB12476423125915947930915268', true),
- array('ZZ25VLQT382332233206588011313776421', true),
-
-
- array('AL4721211009000000023569874', false),
- array('AD120001203020035910010', false),
- array('AT61190430023457320', false),
- array('AZ21NABZ0000000013701000194', false),
- array('BH67BMAG0000129912345', false),
- array('BE6853900754703', false),
- array('BA39129007940102849', false),
- array('BR7724891749412660603618210F', false),
- array('BG80BNBG9661102034567', false),
- array('CR051520200102628406', false),
- array('HR121001005186300016', false),
- array('CY1700200128000000120052760', false),
- array('CZ650800000019200014539', false),
- array('DK500040044011624', false),
- array('DO28BAGR0000000121245361132', false),
- array('EE38220022102014568', false),
- array('FO626460000163163', false),
- array('FI2112345600000780', false),
- array('FR1420041010050500013M0260', false),
- array('GE29NB000000010190491', false),
- array('DE8937040044053201300', false),
- array('GI75NWBK00000000709945', false),
- array('GR160110125000000001230069', false),
- array('GL896471000100020', false),
- array('GT82TRAJ0102000000121002969', false),
- array('HU4211773016111110180000000', false),
- array('IS14015926007654551073033', false),
- array('IE29AIBK9311521234567', false),
- array('IL62010800000009999999', false),
- array('IT60X054281110100000012345', false),
- array('KZ86125KZT500410010', false),
- array('KW81CBKU000000000000123456010', false),
- array('LV80BANK000043519500', false),
- array('LB6209990000000100190122911', false),
- array('LI21088100002324013A', false),
- array('LT12100001110100100', false),
- array('LU28001940064475000', false),
- array('MK0725012000005898', false),
- array('MT84MALT011000012345MTLCAST001', false),
- array('MR130002000101000012345675', false),
- array('MU17BOMM0101101030300200000MU', false),
- array('MD24AG00022510001310416', false),
- array('MC58112220000101234567890', false),
- array('ME2550500001234567895', false),
- array('NL91ABNA041716430', false),
- array('NO938601111794', false),
- array('PK36SCBL000000112345670', false),
- array('PL6110901014000007121981287', false),
- array('PS92PALS00000000040012345670', false),
- array('PT5000020123123456789015', false),
- array('QA58DOHB00001234567890ABCDEF', false),
- array('RO49AAAA1B3100759384000', false),
- array('SM86U032250980000000027010', false),
- array('SA038000000060801016751', false),
- array('RS3526000560100161137', false),
- array('SK311200000019874263754', false),
- array('SI5626330001203908', false),
- array('ES912100041845020005133', false),
- array('SE455000000005839825746', false),
- array('CH930076201162385295', false),
- array('TN591000603518359847883', false),
- array('TR33000610051978645784132', false),
- array('AE07033123456789012345', false),
- array('GB29NWBK6016133192681', false),
- array('VG96VPVG000001234567890', false),
- array('YY24KIHB1247642312591594793091526', false),
- array('ZZ25VLQT38233223320658801131377642', false),
- );
- }
-
- /**
- * @dataProvider validatorProvider
- */
- public function testIsValid($iban, $isValid)
- {
- $this->assertEquals($isValid, Iban::isValid($iban), $iban);
- }
-
- public function alphaToNumberProvider()
- {
- return array(
- array('A', 10),
- array('B', 11),
- array('C', 12),
- array('D', 13),
- array('E', 14),
- array('F', 15),
- array('G', 16),
- array('H', 17),
- array('I', 18),
- array('J', 19),
- array('K', 20),
- array('L', 21),
- array('M', 22),
- array('N', 23),
- array('O', 24),
- array('P', 25),
- array('Q', 26),
- array('R', 27),
- array('S', 28),
- array('T', 29),
- array('U', 30),
- array('V', 31),
- array('W', 32),
- array('X', 33),
- array('Y', 34),
- array('Z', 35),
- );
- }
-
- /**
- * @dataProvider alphaToNumberProvider
- */
- public function testAlphaToNumber($letter, $number)
- {
- $this->assertEquals($number, Iban::alphaToNumber($letter), $letter);
- }
-
- public function mod97Provider()
- {
- // Large numbers
- $return = array(
- array('123456789123456789', 7),
- array('111222333444555666', 73),
- array('4242424242424242424242', 19),
- array('271828182845904523536028', 68),
- );
-
- // 0-200
- for ($i = 0; $i < 200; $i++) {
- $return[] = array((string)$i, $i % 97);
- }
-
- return $return;
- }
- /**
- * @dataProvider mod97Provider
- */
- public function testMod97($number, $result)
- {
- $this->assertEquals($result, Iban::mod97($number), $number);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Calculator/InnTest.php b/vendor/fzaninotto/faker/test/Faker/Calculator/InnTest.php
deleted file mode 100644
index 71d9193f..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Calculator/InnTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-assertEquals($checksum, Inn::checksum($inn), $inn);
- }
-
- public function validatorProvider()
- {
- return array(
- array('5902179757', true),
- array('5408294405', true),
- array('2724164617', true),
- array('0726000515', true),
- array('6312123552', true),
-
- array('1111111111', false),
- array('0123456789', false),
- );
- }
-
- /**
- * @dataProvider validatorProvider
- */
- public function testIsValid($inn, $isValid)
- {
- $this->assertEquals($isValid, Inn::isValid($inn), $inn);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Calculator/LuhnTest.php b/vendor/fzaninotto/faker/test/Faker/Calculator/LuhnTest.php
deleted file mode 100644
index 2e814144..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Calculator/LuhnTest.php
+++ /dev/null
@@ -1,72 +0,0 @@
-assertInternalType('string', $checkDigit);
- $this->assertEquals($checkDigit, Luhn::computeCheckDigit($partialNumber));
- }
-
- public function validatorProvider()
- {
- return array(
- array('79927398710', false),
- array('79927398711', false),
- array('79927398712', false),
- array('79927398713', true),
- array('79927398714', false),
- array('79927398715', false),
- array('79927398716', false),
- array('79927398717', false),
- array('79927398718', false),
- array('79927398719', false),
- array(79927398713, true),
- array(79927398714, false),
- );
- }
-
- /**
- * @dataProvider validatorProvider
- */
- public function testIsValid($number, $isValid)
- {
- $this->assertEquals($isValid, Luhn::isValid($number));
- }
-
- /**
- * @expectedException InvalidArgumentException
- * @expectedExceptionMessage Argument should be an integer.
- */
- public function testGenerateLuhnNumberWithInvalidPrefix()
- {
- Luhn::generateLuhnNumber('abc');
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Calculator/TCNoTest.php b/vendor/fzaninotto/faker/test/Faker/Calculator/TCNoTest.php
deleted file mode 100644
index 9e40d794..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Calculator/TCNoTest.php
+++ /dev/null
@@ -1,54 +0,0 @@
-assertEquals($checksum, TCNo::checksum($tcNo), $tcNo);
- }
-
- public function validatorProvider()
- {
- return array(
- array('22978160678', true),
- array('26480045324', true),
- array('47278360658', true),
- array('34285002510', true),
- array('19874561012', true),
-
- array('11111111111', false),
- array('11234567899', false),
- );
- }
-
- /**
- * @dataProvider validatorProvider
- * @param $tcNo
- * @param $isValid
- */
- public function testIsValid($tcNo, $isValid)
- {
- $this->assertEquals($isValid, TCNo::isValid($tcNo), $tcNo);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/DefaultGeneratorTest.php b/vendor/fzaninotto/faker/test/Faker/DefaultGeneratorTest.php
deleted file mode 100644
index fa9eb852..00000000
--- a/vendor/fzaninotto/faker/test/Faker/DefaultGeneratorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-assertNull($generator->value);
- }
-
- public function testGeneratorReturnsDefaultValueForAnyPropertyGet()
- {
- $generator = new DefaultGenerator(123);
- $this->assertSame(123, $generator->foo);
- $this->assertNotNull($generator->bar);
- }
-
- public function testGeneratorReturnsDefaultValueForAnyMethodCall()
- {
- $generator = new DefaultGenerator(123);
- $this->assertSame(123, $generator->foobar());
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/GeneratorTest.php b/vendor/fzaninotto/faker/test/Faker/GeneratorTest.php
deleted file mode 100644
index f15df441..00000000
--- a/vendor/fzaninotto/faker/test/Faker/GeneratorTest.php
+++ /dev/null
@@ -1,148 +0,0 @@
-addProvider(new FooProvider());
- $generator->addProvider(new BarProvider());
- $this->assertEquals('barfoo', $generator->format('fooFormatter'));
- }
-
- public function testGetFormatterReturnsCallable()
- {
- $generator = new Generator;
- $provider = new FooProvider();
- $generator->addProvider($provider);
- $this->assertInternalType('callable', $generator->getFormatter('fooFormatter'));
- }
-
- public function testGetFormatterReturnsCorrectFormatter()
- {
- $generator = new Generator;
- $provider = new FooProvider();
- $generator->addProvider($provider);
- $expected = array($provider, 'fooFormatter');
- $this->assertEquals($expected, $generator->getFormatter('fooFormatter'));
- }
-
- /**
- * @expectedException InvalidArgumentException
- */
- public function testGetFormatterThrowsExceptionOnIncorrectProvider()
- {
- $generator = new Generator;
- $generator->getFormatter('fooFormatter');
- }
-
- /**
- * @expectedException InvalidArgumentException
- */
- public function testGetFormatterThrowsExceptionOnIncorrectFormatter()
- {
- $generator = new Generator;
- $provider = new FooProvider();
- $generator->addProvider($provider);
- $generator->getFormatter('barFormatter');
- }
-
- public function testFormatCallsFormatterOnProvider()
- {
- $generator = new Generator;
- $provider = new FooProvider();
- $generator->addProvider($provider);
- $this->assertEquals('foobar', $generator->format('fooFormatter'));
- }
-
- public function testFormatTransfersArgumentsToFormatter()
- {
- $generator = new Generator;
- $provider = new FooProvider();
- $generator->addProvider($provider);
- $this->assertEquals('bazfoo', $generator->format('fooFormatterWithArguments', array('foo')));
- }
-
- public function testParseReturnsSameStringWhenItContainsNoCurlyBraces()
- {
- $generator = new Generator();
- $this->assertEquals('fooBar#?', $generator->parse('fooBar#?'));
- }
-
- public function testParseReturnsStringWithTokensReplacedByFormatters()
- {
- $generator = new Generator();
- $provider = new FooProvider();
- $generator->addProvider($provider);
- $this->assertEquals('This is foobar a text with foobar', $generator->parse('This is {{fooFormatter}} a text with {{ fooFormatter }}'));
- }
-
- public function testMagicGetCallsFormat()
- {
- $generator = new Generator;
- $provider = new FooProvider();
- $generator->addProvider($provider);
- $this->assertEquals('foobar', $generator->fooFormatter);
- }
-
- public function testMagicCallCallsFormat()
- {
- $generator = new Generator;
- $provider = new FooProvider();
- $generator->addProvider($provider);
- $this->assertEquals('foobar', $generator->fooFormatter());
- }
-
- public function testMagicCallCallsFormatWithArguments()
- {
- $generator = new Generator;
- $provider = new FooProvider();
- $generator->addProvider($provider);
- $this->assertEquals('bazfoo', $generator->fooFormatterWithArguments('foo'));
- }
-
- public function testSeed()
- {
- $generator = new Generator;
-
- $generator->seed(0);
- $mtRandWithSeedZero = mt_rand();
- $generator->seed(0);
- $this->assertEquals($mtRandWithSeedZero, mt_rand(), 'seed(0) should be deterministic.');
-
- $generator->seed();
- $mtRandWithoutSeed = mt_rand();
- $this->assertNotEquals($mtRandWithSeedZero, $mtRandWithoutSeed, 'seed() should be different than seed(0)');
- $generator->seed();
- $this->assertNotEquals($mtRandWithoutSeed, mt_rand(), 'seed() should not be deterministic.');
-
- $generator->seed('10');
- $this->assertTrue(true, 'seeding with a non int value doesn\'t throw an exception');
- }
-}
-
-class FooProvider
-{
- public function fooFormatter()
- {
- return 'foobar';
- }
-
- public function fooFormatterWithArguments($value = '')
- {
- return 'baz' . $value;
- }
-}
-
-class BarProvider
-{
- public function fooFormatter()
- {
- return 'barfoo';
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/AddressTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/AddressTest.php
deleted file mode 100644
index c7f1814c..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/AddressTest.php
+++ /dev/null
@@ -1,47 +0,0 @@
-addProvider(new Address($faker));
- $this->faker = $faker;
- }
-
- public function testLatitude()
- {
- $latitude = $this->faker->latitude();
- $this->assertInternalType('float', $latitude);
- $this->assertGreaterThanOrEqual(-90, $latitude);
- $this->assertLessThanOrEqual(90, $latitude);
- }
-
- public function testLongitude()
- {
- $longitude = $this->faker->longitude();
- $this->assertInternalType('float', $longitude);
- $this->assertGreaterThanOrEqual(-180, $longitude);
- $this->assertLessThanOrEqual(180, $longitude);
- }
-
- public function testCoordinate()
- {
- $coordinate = $this->faker->localCoordinates();
- $this->assertInternalType('array', $coordinate);
- $this->assertInternalType('float', $coordinate['latitude']);
- $this->assertGreaterThanOrEqual(-90, $coordinate['latitude']);
- $this->assertLessThanOrEqual(90, $coordinate['latitude']);
- $this->assertInternalType('float', $coordinate['longitude']);
- $this->assertGreaterThanOrEqual(-180, $coordinate['longitude']);
- $this->assertLessThanOrEqual(180, $coordinate['longitude']);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/BarcodeTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/BarcodeTest.php
deleted file mode 100644
index 16ca3cd8..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/BarcodeTest.php
+++ /dev/null
@@ -1,46 +0,0 @@
-addProvider(new Barcode($faker));
- $faker->seed(0);
- $this->faker = $faker;
- }
-
- public function testEan8()
- {
- $code = $this->faker->ean8();
- $this->assertRegExp('/^\d{8}$/i', $code);
- $codeWithoutChecksum = substr($code, 0, -1);
- $checksum = substr($code, -1);
- $this->assertEquals(TestableBarcode::eanChecksum($codeWithoutChecksum), $checksum);
- }
-
- public function testEan13()
- {
- $code = $this->faker->ean13();
- $this->assertRegExp('/^\d{13}$/i', $code);
- $codeWithoutChecksum = substr($code, 0, -1);
- $checksum = substr($code, -1);
- $this->assertEquals(TestableBarcode::eanChecksum($codeWithoutChecksum), $checksum);
- }
-}
-
-class TestableBarcode extends Barcode
-{
- public static function eanChecksum($input)
- {
- return parent::eanChecksum($input);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/BaseTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/BaseTest.php
deleted file mode 100644
index e619d5be..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/BaseTest.php
+++ /dev/null
@@ -1,572 +0,0 @@
-assertInternalType('integer', BaseProvider::randomDigit());
- }
-
- public function testRandomDigitReturnsDigit()
- {
- $this->assertGreaterThanOrEqual(0, BaseProvider::randomDigit());
- $this->assertLessThan(10, BaseProvider::randomDigit());
- }
-
- public function testRandomDigitNotNullReturnsNotNullDigit()
- {
- $this->assertGreaterThan(0, BaseProvider::randomDigitNotNull());
- $this->assertLessThan(10, BaseProvider::randomDigitNotNull());
- }
-
-
- public function testRandomDigitNotReturnsValidDigit()
- {
- for ($i = 0; $i <= 9; $i++) {
- $this->assertGreaterThanOrEqual(0, BaseProvider::randomDigitNot($i));
- $this->assertLessThan(10, BaseProvider::randomDigitNot($i));
- $this->assertNotSame(BaseProvider::randomDigitNot($i), $i);
- }
- }
-
- /**
- * @expectedException \InvalidArgumentException
- */
- public function testRandomNumberThrowsExceptionWhenCalledWithAMax()
- {
- BaseProvider::randomNumber(5, 200);
- }
-
- /**
- * @expectedException \InvalidArgumentException
- */
- public function testRandomNumberThrowsExceptionWhenCalledWithATooHighNumberOfDigits()
- {
- BaseProvider::randomNumber(10);
- }
-
- public function testRandomNumberReturnsInteger()
- {
- $this->assertInternalType('integer', BaseProvider::randomNumber());
- $this->assertInternalType('integer', BaseProvider::randomNumber(5, false));
- }
-
- public function testRandomNumberReturnsDigit()
- {
- $this->assertGreaterThanOrEqual(0, BaseProvider::randomNumber(3));
- $this->assertLessThan(1000, BaseProvider::randomNumber(3));
- }
-
- public function testRandomNumberAcceptsStrictParamToEnforceNumberSize()
- {
- $this->assertEquals(5, strlen((string) BaseProvider::randomNumber(5, true)));
- }
-
- public function testNumberBetween()
- {
- $min = 5;
- $max = 6;
-
- $this->assertGreaterThanOrEqual($min, BaseProvider::numberBetween($min, $max));
- $this->assertGreaterThanOrEqual(BaseProvider::numberBetween($min, $max), $max);
- }
-
- public function testNumberBetweenAcceptsZeroAsMax()
- {
- $this->assertEquals(0, BaseProvider::numberBetween(0, 0));
- }
-
- public function testRandomFloat()
- {
- $min = 4;
- $max = 10;
- $nbMaxDecimals = 8;
-
- $result = BaseProvider::randomFloat($nbMaxDecimals, $min, $max);
-
- $parts = explode('.', $result);
-
- $this->assertInternalType('float', $result);
- $this->assertGreaterThanOrEqual($min, $result);
- $this->assertLessThanOrEqual($max, $result);
- $this->assertLessThanOrEqual($nbMaxDecimals, strlen($parts[1]));
- }
-
- public function testRandomLetterReturnsString()
- {
- $this->assertInternalType('string', BaseProvider::randomLetter());
- }
-
- public function testRandomLetterReturnsSingleLetter()
- {
- $this->assertEquals(1, strlen(BaseProvider::randomLetter()));
- }
-
- public function testRandomLetterReturnsLowercaseLetter()
- {
- $lowercaseLetters = 'abcdefghijklmnopqrstuvwxyz';
- $this->assertNotFalse(strpos($lowercaseLetters, BaseProvider::randomLetter()));
- }
-
- public function testRandomAsciiReturnsString()
- {
- $this->assertInternalType('string', BaseProvider::randomAscii());
- }
-
- public function testRandomAsciiReturnsSingleCharacter()
- {
- $this->assertEquals(1, strlen(BaseProvider::randomAscii()));
- }
-
- public function testRandomAsciiReturnsAsciiCharacter()
- {
- $lowercaseLetters = '!"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~';
- $this->assertNotFalse(strpos($lowercaseLetters, BaseProvider::randomAscii()));
- }
-
- public function testRandomElementReturnsNullWhenArrayEmpty()
- {
- $this->assertNull(BaseProvider::randomElement(array()));
- }
-
- public function testRandomElementReturnsNullWhenCollectionEmpty()
- {
- $this->assertNull(BaseProvider::randomElement(new Collection(array())));
- }
-
- public function testRandomElementReturnsElementFromArray()
- {
- $elements = array('23', 'e', 32, '#');
- $this->assertContains(BaseProvider::randomElement($elements), $elements);
- }
-
- public function testRandomElementReturnsElementFromAssociativeArray()
- {
- $elements = array('tata' => '23', 'toto' => 'e', 'tutu' => 32, 'titi' => '#');
- $this->assertContains(BaseProvider::randomElement($elements), $elements);
- }
-
- public function testRandomElementReturnsElementFromCollection()
- {
- $collection = new Collection(array('one', 'two', 'three'));
- $this->assertContains(BaseProvider::randomElement($collection), $collection);
- }
-
- public function testShuffleReturnsStringWhenPassedAStringArgument()
- {
- $this->assertInternalType('string', BaseProvider::shuffle('foo'));
- }
-
- public function testShuffleReturnsArrayWhenPassedAnArrayArgument()
- {
- $this->assertInternalType('array', BaseProvider::shuffle(array(1, 2, 3)));
- }
-
- /**
- * @expectedException \InvalidArgumentException
- */
- public function testShuffleThrowsExceptionWhenPassedAnInvalidArgument()
- {
- BaseProvider::shuffle(false);
- }
-
- public function testShuffleArraySupportsEmptyArrays()
- {
- $this->assertEquals(array(), BaseProvider::shuffleArray(array()));
- }
-
- public function testShuffleArrayReturnsAnArrayOfTheSameSize()
- {
- $array = array(1, 2, 3, 4, 5);
- $this->assertSameSize($array, BaseProvider::shuffleArray($array));
- }
-
- public function testShuffleArrayReturnsAnArrayWithSameElements()
- {
- $array = array(2, 4, 6, 8, 10);
- $shuffleArray = BaseProvider::shuffleArray($array);
- $this->assertContains(2, $shuffleArray);
- $this->assertContains(4, $shuffleArray);
- $this->assertContains(6, $shuffleArray);
- $this->assertContains(8, $shuffleArray);
- $this->assertContains(10, $shuffleArray);
- }
-
- public function testShuffleArrayReturnsADifferentArrayThanTheOriginal()
- {
- $arr = array(1, 2, 3, 4, 5);
- $shuffledArray = BaseProvider::shuffleArray($arr);
- $this->assertNotEquals($arr, $shuffledArray);
- }
-
- public function testShuffleArrayLeavesTheOriginalArrayUntouched()
- {
- $arr = array(1, 2, 3, 4, 5);
- BaseProvider::shuffleArray($arr);
- $this->assertEquals($arr, array(1, 2, 3, 4, 5));
- }
-
- public function testShuffleStringSupportsEmptyStrings()
- {
- $this->assertEquals('', BaseProvider::shuffleString(''));
- }
-
- public function testShuffleStringReturnsAnStringOfTheSameSize()
- {
- $string = 'abcdef';
- $this->assertEquals(strlen($string), strlen(BaseProvider::shuffleString($string)));
- }
-
- public function testShuffleStringReturnsAnStringWithSameElements()
- {
- $string = 'acegi';
- $shuffleString = BaseProvider::shuffleString($string);
- $this->assertContains('a', $shuffleString);
- $this->assertContains('c', $shuffleString);
- $this->assertContains('e', $shuffleString);
- $this->assertContains('g', $shuffleString);
- $this->assertContains('i', $shuffleString);
- }
-
- public function testShuffleStringReturnsADifferentStringThanTheOriginal()
- {
- $string = 'abcdef';
- $shuffledString = BaseProvider::shuffleString($string);
- $this->assertNotEquals($string, $shuffledString);
- }
-
- public function testShuffleStringLeavesTheOriginalStringUntouched()
- {
- $string = 'abcdef';
- BaseProvider::shuffleString($string);
- $this->assertEquals($string, 'abcdef');
- }
-
- public function testNumerifyReturnsSameStringWhenItContainsNoHashSign()
- {
- $this->assertEquals('fooBar?', BaseProvider::numerify('fooBar?'));
- }
-
- public function testNumerifyReturnsStringWithHashSignsReplacedByDigits()
- {
- $this->assertRegExp('/foo\dBa\dr/', BaseProvider::numerify('foo#Ba#r'));
- }
-
- public function testNumerifyReturnsStringWithPercentageSignsReplacedByDigits()
- {
- $this->assertRegExp('/foo\dBa\dr/', BaseProvider::numerify('foo%Ba%r'));
- }
-
- public function testNumerifyReturnsStringWithPercentageSignsReplacedByNotNullDigits()
- {
- $this->assertNotEquals('0', BaseProvider::numerify('%'));
- }
-
- public function testNumerifyCanGenerateALargeNumberOfDigits()
- {
- $largePattern = str_repeat('#', 20); // definitely larger than PHP_INT_MAX on all systems
- $this->assertEquals(20, strlen(BaseProvider::numerify($largePattern)));
- }
-
- public function testLexifyReturnsSameStringWhenItContainsNoQuestionMark()
- {
- $this->assertEquals('fooBar#', BaseProvider::lexify('fooBar#'));
- }
-
- public function testLexifyReturnsStringWithQuestionMarksReplacedByLetters()
- {
- $this->assertRegExp('/foo[a-z]Ba[a-z]r/', BaseProvider::lexify('foo?Ba?r'));
- }
-
- public function testBothifyCombinesNumerifyAndLexify()
- {
- $this->assertRegExp('/foo[a-z]Ba\dr/', BaseProvider::bothify('foo?Ba#r'));
- }
-
- public function testBothifyAsterisk()
- {
- $this->assertRegExp('/foo([a-z]|\d)Ba([a-z]|\d)r/', BaseProvider::bothify('foo*Ba*r'));
- }
-
- public function testBothifyUtf()
- {
- $utf = 'œ∑´®†¥¨ˆøπ“‘和製╯°□°╯︵ â”»â”┻🵠🙈 ﺚﻣ ﻦﻔﺳ ﺲﻘﻄﺗ ï»®ïº‘ïºŽï» ïº˜ïº£ïºªï»³ïº©ØŒ, ïºïº°ï»³ïº®ïº˜ï»³ ïºïºŽïº´ïº˜ïº§ïº©ïºŽï»£ ﺄﻧ ﺪﻧï». ﺇﺫ ﻪﻧïºØŸ ïºŽï» ïº´ïº—ïºïº ﻮﺘ';
- $this->assertRegExp('/'.$utf.'foo\dB[a-z]a([a-z]|\d)r/u', BaseProvider::bothify($utf.'foo#B?a*r'));
- }
-
- public function testAsciifyReturnsSameStringWhenItContainsNoStarSign()
- {
- $this->assertEquals('fooBar?', BaseProvider::asciify('fooBar?'));
- }
-
- public function testAsciifyReturnsStringWithStarSignsReplacedByAsciiChars()
- {
- $this->assertRegExp('/foo.Ba.r/', BaseProvider::asciify('foo*Ba*r'));
- }
-
- public function regexifyBasicDataProvider()
- {
- return array(
- array('azeQSDF1234', 'azeQSDF1234', 'does not change non regex chars'),
- array('foo(bar){1}', 'foobar', 'replaces regex characters'),
- array('', '', 'supports empty string'),
- array('/^foo(bar){1}$/', 'foobar', 'ignores regex delimiters')
- );
- }
-
- /**
- * @dataProvider regexifyBasicDataProvider
- */
- public function testRegexifyBasicFeatures($input, $output, $message)
- {
- $this->assertEquals($output, BaseProvider::regexify($input), $message);
- }
-
- public function regexifyDataProvider()
- {
- return array(
- array('\d', 'numbers'),
- array('\w', 'letters'),
- array('(a|b)', 'alternation'),
- array('[aeiou]', 'basic character class'),
- array('[a-z]', 'character class range'),
- array('[a-z1-9]', 'multiple character class range'),
- array('a*b+c?', 'single character quantifiers'),
- array('a{2}', 'brackets quantifiers'),
- array('a{2,3}', 'min-max brackets quantifiers'),
- array('[aeiou]{2,3}', 'brackets quantifiers on basic character class'),
- array('[a-z]{2,3}', 'brackets quantifiers on character class range'),
- array('(a|b){2,3}', 'brackets quantifiers on alternation'),
- array('\.\*\?\+', 'escaped characters'),
- array('[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}', 'complex regex')
- );
- }
-
- /**
- * @dataProvider regexifyDataProvider
- */
- public function testRegexifySupportedRegexSyntax($pattern, $message)
- {
- $this->assertRegExp('/' . $pattern . '/', BaseProvider::regexify($pattern), 'Regexify supports ' . $message);
- }
-
- public function testOptionalReturnsProviderValueWhenCalledWithWeight1()
- {
- $faker = new \Faker\Generator();
- $faker->addProvider(new \Faker\Provider\Base($faker));
- $this->assertNotNull($faker->optional(100)->randomDigit);
- }
-
- public function testOptionalReturnsNullWhenCalledWithWeight0()
- {
- $faker = new \Faker\Generator();
- $faker->addProvider(new \Faker\Provider\Base($faker));
- $this->assertNull($faker->optional(0)->randomDigit);
- }
-
- public function testOptionalAllowsChainingPropertyAccess()
- {
- $faker = new \Faker\Generator();
- $faker->addProvider(new \Faker\Provider\Base($faker));
- $faker->addProvider(new \ArrayObject(array(1))); // hack because method_exists forbids stubs
- $this->assertEquals(1, $faker->optional(100)->count);
- $this->assertNull($faker->optional(0)->count);
- }
-
- public function testOptionalAllowsChainingMethodCall()
- {
- $faker = new \Faker\Generator();
- $faker->addProvider(new \Faker\Provider\Base($faker));
- $faker->addProvider(new \ArrayObject(array(1))); // hack because method_exists forbids stubs
- $this->assertEquals(1, $faker->optional(100)->count());
- $this->assertNull($faker->optional(0)->count());
- }
-
- public function testOptionalAllowsChainingProviderCallRandomlyReturnNull()
- {
- $faker = new \Faker\Generator();
- $faker->addProvider(new \Faker\Provider\Base($faker));
- $values = array();
- for ($i=0; $i < 10; $i++) {
- $values[]= $faker->optional()->randomDigit;
- }
- $this->assertContains(null, $values);
-
- $values = array();
- for ($i=0; $i < 10; $i++) {
- $values[]= $faker->optional(50)->randomDigit;
- }
- $this->assertContains(null, $values);
- }
-
- /**
- * @link https://github.com/fzaninotto/Faker/issues/265
- */
- public function testOptionalPercentageAndWeight()
- {
- $faker = new \Faker\Generator();
- $faker->addProvider(new \Faker\Provider\Base($faker));
- $faker->addProvider(new \Faker\Provider\Miscellaneous($faker));
-
- $valuesOld = array();
- $valuesNew = array();
-
- for ($i = 0; $i < 10000; ++$i) {
- $valuesOld[] = $faker->optional(0.5)->boolean(100);
- $valuesNew[] = $faker->optional(50)->boolean(100);
- }
-
- $this->assertEquals(
- round(array_sum($valuesOld) / 10000, 2),
- round(array_sum($valuesNew) / 10000, 2)
- );
- }
-
- public function testUniqueAllowsChainingPropertyAccess()
- {
- $faker = new \Faker\Generator();
- $faker->addProvider(new \Faker\Provider\Base($faker));
- $faker->addProvider(new \ArrayObject(array(1))); // hack because method_exists forbids stubs
- $this->assertEquals(1, $faker->unique()->count);
- }
-
- public function testUniqueAllowsChainingMethodCall()
- {
- $faker = new \Faker\Generator();
- $faker->addProvider(new \Faker\Provider\Base($faker));
- $faker->addProvider(new \ArrayObject(array(1))); // hack because method_exists forbids stubs
- $this->assertEquals(1, $faker->unique()->count());
- }
-
- public function testUniqueReturnsOnlyUniqueValues()
- {
- $faker = new \Faker\Generator();
- $faker->addProvider(new \Faker\Provider\Base($faker));
- $values = array();
- for ($i=0; $i < 10; $i++) {
- $values[]= $faker->unique()->randomDigit;
- }
- sort($values);
- $this->assertEquals(array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9), $values);
- }
-
- /**
- * @expectedException OverflowException
- */
- public function testUniqueThrowsExceptionWhenNoUniqueValueCanBeGenerated()
- {
- $faker = new \Faker\Generator();
- $faker->addProvider(new \Faker\Provider\Base($faker));
- for ($i=0; $i < 11; $i++) {
- $faker->unique()->randomDigit;
- }
- }
-
- public function testUniqueCanResetUniquesWhenPassedTrueAsArgument()
- {
- $faker = new \Faker\Generator();
- $faker->addProvider(new \Faker\Provider\Base($faker));
- $values = array();
- for ($i=0; $i < 10; $i++) {
- $values[]= $faker->unique()->randomDigit;
- }
- $values[]= $faker->unique(true)->randomDigit;
- for ($i=0; $i < 9; $i++) {
- $values[]= $faker->unique()->randomDigit;
- }
- sort($values);
- $this->assertEquals(array(0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9), $values);
- }
-
- public function testValidAllowsChainingPropertyAccess()
- {
- $faker = new \Faker\Generator();
- $faker->addProvider(new \Faker\Provider\Base($faker));
- $this->assertLessThan(10, $faker->valid()->randomDigit);
- }
-
- public function testValidAllowsChainingMethodCall()
- {
- $faker = new \Faker\Generator();
- $faker->addProvider(new \Faker\Provider\Base($faker));
- $this->assertLessThan(10, $faker->valid()->numberBetween(5, 9));
- }
-
- public function testValidReturnsOnlyValidValues()
- {
- $faker = new \Faker\Generator();
- $faker->addProvider(new \Faker\Provider\Base($faker));
- $values = array();
- $evenValidator = function($digit) {
- return $digit % 2 === 0;
- };
- for ($i=0; $i < 50; $i++) {
- $values[$faker->valid($evenValidator)->randomDigit] = true;
- }
- $uniqueValues = array_keys($values);
- sort($uniqueValues);
- $this->assertEquals(array(0, 2, 4, 6, 8), $uniqueValues);
- }
-
- /**
- * @expectedException OverflowException
- */
- public function testValidThrowsExceptionWhenNoValidValueCanBeGenerated()
- {
- $faker = new \Faker\Generator();
- $faker->addProvider(new \Faker\Provider\Base($faker));
- $evenValidator = function($digit) {
- return $digit % 2 === 0;
- };
- for ($i=0; $i < 11; $i++) {
- $faker->valid($evenValidator)->randomElement(array(1, 3, 5, 7, 9));
- }
- }
-
- /**
- * @expectedException InvalidArgumentException
- */
- public function testValidThrowsExceptionWhenParameterIsNotCollable()
- {
- $faker = new \Faker\Generator();
- $faker->addProvider(new \Faker\Provider\Base($faker));
- $faker->valid(12)->randomElement(array(1, 3, 5, 7, 9));
- }
-
- /**
- * @expectedException LengthException
- * @expectedExceptionMessage Cannot get 2 elements, only 1 in array
- */
- public function testRandomElementsThrowsWhenRequestingTooManyKeys()
- {
- BaseProvider::randomElements(array('foo'), 2);
- }
-
- public function testRandomElements()
- {
- $this->assertCount(1, BaseProvider::randomElements(), 'Should work without any input');
-
- $empty = BaseProvider::randomElements(array(), 0);
- $this->assertInternalType('array', $empty);
- $this->assertCount(0, $empty);
-
- $shuffled = BaseProvider::randomElements(array('foo', 'bar', 'baz'), 3);
- $this->assertContains('foo', $shuffled);
- $this->assertContains('bar', $shuffled);
- $this->assertContains('baz', $shuffled);
-
- $allowDuplicates = BaseProvider::randomElements(array('foo', 'bar'), 3, true);
- $this->assertCount(3, $allowDuplicates);
- $this->assertContainsOnly('string', $allowDuplicates);
- }
-}
-
-class Collection extends \ArrayObject
-{
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/BiasedTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/BiasedTest.php
deleted file mode 100644
index cce3dc0a..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/BiasedTest.php
+++ /dev/null
@@ -1,74 +0,0 @@
-generator = new Generator();
- $this->generator->addProvider(new Biased($this->generator));
-
- $this->results = array_fill(1, self::MAX, 0);
- }
-
- public function performFake($function)
- {
- for($i = 0; $i < self::NUMBERS; $i++) {
- $this->results[$this->generator->biasedNumberBetween(1, self::MAX, $function)]++;
- }
- }
-
- public function testUnbiased()
- {
- $this->performFake(array('\Faker\Provider\Biased', 'unbiased'));
-
- // assert that all numbers are near the expected unbiased value
- foreach ($this->results as $number => $amount) {
- // integral
- $assumed = (1 / self::MAX * $number) - (1 / self::MAX * ($number - 1));
- // calculate the fraction of the whole area
- $assumed /= 1;
- $this->assertGreaterThan(self::NUMBERS * $assumed * .95, $amount, "Value was more than 5 percent under the expected value");
- $this->assertLessThan(self::NUMBERS * $assumed * 1.05, $amount, "Value was more than 5 percent over the expected value");
- }
- }
-
- public function testLinearHigh()
- {
- $this->performFake(array('\Faker\Provider\Biased', 'linearHigh'));
-
- foreach ($this->results as $number => $amount) {
- // integral
- $assumed = 0.5 * pow(1 / self::MAX * $number, 2) - 0.5 * pow(1 / self::MAX * ($number - 1), 2);
- // calculate the fraction of the whole area
- $assumed /= pow(1, 2) * .5;
- $this->assertGreaterThan(self::NUMBERS * $assumed * .9, $amount, "Value was more than 10 percent under the expected value");
- $this->assertLessThan(self::NUMBERS * $assumed * 1.1, $amount, "Value was more than 10 percent over the expected value");
- }
- }
-
- public function testLinearLow()
- {
- $this->performFake(array('\Faker\Provider\Biased', 'linearLow'));
-
- foreach ($this->results as $number => $amount) {
- // integral
- $assumed = -0.5 * pow(1 / self::MAX * $number, 2) - -0.5 * pow(1 / self::MAX * ($number - 1), 2);
- // shift the graph up
- $assumed += 1 / self::MAX;
- // calculate the fraction of the whole area
- $assumed /= pow(1, 2) * .5;
- $this->assertGreaterThan(self::NUMBERS * $assumed * .9, $amount, "Value was more than 10 percent under the expected value");
- $this->assertLessThan(self::NUMBERS * $assumed * 1.1, $amount, "Value was more than 10 percent over the expected value");
- }
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/ColorTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/ColorTest.php
deleted file mode 100644
index ff5edac2..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/ColorTest.php
+++ /dev/null
@@ -1,54 +0,0 @@
-assertRegExp('/^#[a-f0-9]{6}$/i', Color::hexColor());
- }
-
- public function testSafeHexColor()
- {
- $this->assertRegExp('/^#[a-f0-9]{6}$/i', Color::safeHexColor());
- }
-
- public function testRgbColorAsArray()
- {
- $this->assertEquals(3, count(Color::rgbColorAsArray()));
- }
-
- public function testRgbColor()
- {
- $regexp = '([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])';
- $this->assertRegExp('/^' . $regexp . ',' . $regexp . ',' . $regexp . '$/i', Color::rgbColor());
- }
-
- public function testRgbCssColor()
- {
- $regexp = '([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])';
- $this->assertRegExp('/^rgb\(' . $regexp . ',' . $regexp . ',' . $regexp . '\)$/i', Color::rgbCssColor());
- }
-
- public function testRgbaCssColor()
- {
- $regexp = '([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])';
- $regexpAlpha = '([01]?(\.\d+)?)';
- $this->assertRegExp('/^rgba\(' . $regexp . ',' . $regexp . ',' . $regexp . ',' . $regexpAlpha . '\)$/i', Color::rgbaCssColor());
- }
-
- public function testSafeColorName()
- {
- $this->assertRegExp('/^[\w]+$/', Color::safeColorName());
- }
-
- public function testColorName()
- {
- $this->assertRegExp('/^[\w]+$/', Color::colorName());
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/CompanyTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/CompanyTest.php
deleted file mode 100644
index 28ce0eb4..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/CompanyTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-addProvider(new Company($faker));
- $faker->addProvider(new Lorem($faker));
- $this->faker = $faker;
- }
-
- public function testJobTitle()
- {
- $jobTitle = $this->faker->jobTitle();
- $pattern = '/^[A-Za-z]+$/';
- $this->assertRegExp($pattern, $jobTitle);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/DateTimeTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/DateTimeTest.php
deleted file mode 100644
index ec3ad867..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/DateTimeTest.php
+++ /dev/null
@@ -1,282 +0,0 @@
-defaultTz = 'UTC';
- DateTimeProvider::setDefaultTimezone($this->defaultTz);
- }
-
- public function tearDown()
- {
- DateTimeProvider::setDefaultTimezone();
- }
-
- public function testPreferDefaultTimezoneOverSystemTimezone()
- {
- /**
- * Set the system timezone to something *other* than the timezone used
- * in setUp().
- */
- $originalSystemTimezone = date_default_timezone_get();
- $systemTimezone = 'Antarctica/Vostok';
- date_default_timezone_set($systemTimezone);
-
- /**
- * Get a new date/time value and assert that it prefers the default
- * timezone over the system timezone.
- */
- $date = DateTimeProvider::dateTime();
- $this->assertNotSame($systemTimezone, $date->getTimezone()->getName());
- $this->assertSame($this->defaultTz, $date->getTimezone()->getName());
-
- /**
- * Restore the system timezone.
- */
- date_default_timezone_set($originalSystemTimezone);
- }
-
- public function testUseSystemTimezoneWhenDefaultTimezoneIsNotSet()
- {
- /**
- * Set the system timezone to something *other* than the timezone used
- * in setUp() *and* reset the default timezone.
- */
- $originalSystemTimezone = date_default_timezone_get();
- $originalDefaultTimezone = DateTimeProvider::getDefaultTimezone();
- $systemTimezone = 'Antarctica/Vostok';
- date_default_timezone_set($systemTimezone);
- DateTimeProvider::setDefaultTimezone();
-
- /**
- * Get a new date/time value and assert that it uses the system timezone
- * and not the system timezone.
- */
- $date = DateTimeProvider::dateTime();
- $this->assertSame($systemTimezone, $date->getTimezone()->getName());
- $this->assertNotSame($this->defaultTz, $date->getTimezone()->getName());
-
- /**
- * Restore the system timezone.
- */
- date_default_timezone_set($originalSystemTimezone);
- }
-
- public function testUnixTime()
- {
- $timestamp = DateTimeProvider::unixTime();
- $this->assertInternalType('int', $timestamp);
- $this->assertGreaterThanOrEqual(0, $timestamp);
- $this->assertLessThanOrEqual(time(), $timestamp);
- }
-
- public function testDateTime()
- {
- $date = DateTimeProvider::dateTime();
- $this->assertInstanceOf('\DateTime', $date);
- $this->assertGreaterThanOrEqual(new \DateTime('@0'), $date);
- $this->assertLessThanOrEqual(new \DateTime(), $date);
- $this->assertEquals(new \DateTimeZone($this->defaultTz), $date->getTimezone());
- }
-
- public function testDateTimeWithTimezone()
- {
- $date = DateTimeProvider::dateTime('now', 'America/New_York');
- $this->assertEquals($date->getTimezone(), new \DateTimeZone('America/New_York'));
- }
-
- public function testDateTimeAD()
- {
- $date = DateTimeProvider::dateTimeAD();
- $this->assertInstanceOf('\DateTime', $date);
- $this->assertGreaterThanOrEqual(new \DateTime('0000-01-01 00:00:00'), $date);
- $this->assertLessThanOrEqual(new \DateTime(), $date);
- $this->assertEquals(new \DateTimeZone($this->defaultTz), $date->getTimezone());
- }
-
- public function testDateTimeThisCentury()
- {
- $date = DateTimeProvider::dateTimeThisCentury();
- $this->assertInstanceOf('\DateTime', $date);
- $this->assertGreaterThanOrEqual(new \DateTime('-100 year'), $date);
- $this->assertLessThanOrEqual(new \DateTime(), $date);
- $this->assertEquals(new \DateTimeZone($this->defaultTz), $date->getTimezone());
- }
-
- public function testDateTimeThisDecade()
- {
- $date = DateTimeProvider::dateTimeThisDecade();
- $this->assertInstanceOf('\DateTime', $date);
- $this->assertGreaterThanOrEqual(new \DateTime('-10 year'), $date);
- $this->assertLessThanOrEqual(new \DateTime(), $date);
- $this->assertEquals(new \DateTimeZone($this->defaultTz), $date->getTimezone());
- }
-
- public function testDateTimeThisYear()
- {
- $date = DateTimeProvider::dateTimeThisYear();
- $this->assertInstanceOf('\DateTime', $date);
- $this->assertGreaterThanOrEqual(new \DateTime('-1 year'), $date);
- $this->assertLessThanOrEqual(new \DateTime(), $date);
- $this->assertEquals(new \DateTimeZone($this->defaultTz), $date->getTimezone());
- }
-
- public function testDateTimeThisMonth()
- {
- $date = DateTimeProvider::dateTimeThisMonth();
- $this->assertInstanceOf('\DateTime', $date);
- $this->assertGreaterThanOrEqual(new \DateTime('-1 month'), $date);
- $this->assertLessThanOrEqual(new \DateTime(), $date);
- $this->assertEquals(new \DateTimeZone($this->defaultTz), $date->getTimezone());
- }
-
- public function testDateTimeThisCenturyWithTimezone()
- {
- $date = DateTimeProvider::dateTimeThisCentury('now', 'America/New_York');
- $this->assertEquals($date->getTimezone(), new \DateTimeZone('America/New_York'));
- }
-
- public function testDateTimeThisDecadeWithTimezone()
- {
- $date = DateTimeProvider::dateTimeThisDecade('now', 'America/New_York');
- $this->assertEquals($date->getTimezone(), new \DateTimeZone('America/New_York'));
- }
-
- public function testDateTimeThisYearWithTimezone()
- {
- $date = DateTimeProvider::dateTimeThisYear('now', 'America/New_York');
- $this->assertEquals($date->getTimezone(), new \DateTimeZone('America/New_York'));
- }
-
- public function testDateTimeThisMonthWithTimezone()
- {
- $date = DateTimeProvider::dateTimeThisMonth('now', 'America/New_York');
- $this->assertEquals($date->getTimezone(), new \DateTimeZone('America/New_York'));
- }
-
- public function testIso8601()
- {
- $date = DateTimeProvider::iso8601();
- $this->assertRegExp('/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-Z](\d{4})?$/', $date);
- $this->assertGreaterThanOrEqual(new \DateTime('@0'), new \DateTime($date));
- $this->assertLessThanOrEqual(new \DateTime(), new \DateTime($date));
- }
-
- public function testDate()
- {
- $date = DateTimeProvider::date();
- $this->assertRegExp('/^\d{4}-\d{2}-\d{2}$/', $date);
- $this->assertGreaterThanOrEqual(new \DateTime('@0'), new \DateTime($date));
- $this->assertLessThanOrEqual(new \DateTime(), new \DateTime($date));
- }
-
- public function testTime()
- {
- $date = DateTimeProvider::time();
- $this->assertRegExp('/^\d{2}:\d{2}:\d{2}$/', $date);
- }
-
- /**
- *
- * @dataProvider providerDateTimeBetween
- */
- public function testDateTimeBetween($start, $end)
- {
- $date = DateTimeProvider::dateTimeBetween($start, $end);
- $this->assertInstanceOf('\DateTime', $date);
- $this->assertGreaterThanOrEqual(new \DateTime($start), $date);
- $this->assertLessThanOrEqual(new \DateTime($end), $date);
- $this->assertEquals(new \DateTimeZone($this->defaultTz), $date->getTimezone());
- }
-
- public function providerDateTimeBetween()
- {
- return array(
- array('-1 year', false),
- array('-1 year', null),
- array('-1 day', '-1 hour'),
- array('-1 day', 'now'),
- );
- }
-
- /**
- *
- * @dataProvider providerDateTimeInInterval
- */
- public function testDateTimeInInterval($start, $interval = "+5 days", $isInFuture)
- {
- $date = DateTimeProvider::dateTimeInInterval($start, $interval);
- $this->assertInstanceOf('\DateTime', $date);
-
- $_interval = \DateInterval::createFromDateString($interval);
- $_start = new \DateTime($start);
- if ($isInFuture) {
- $this->assertGreaterThanOrEqual($_start, $date);
- $this->assertLessThanOrEqual($_start->add($_interval), $date);
- } else {
- $this->assertLessThanOrEqual($_start, $date);
- $this->assertGreaterThanOrEqual($_start->add($_interval), $date);
- }
- }
-
- public function providerDateTimeInInterval()
- {
- return array(
- array('-1 year', '+5 days', true),
- array('-1 day', '-1 hour', false),
- array('-1 day', '+1 hour', true),
- );
- }
-
- public function testFixedSeedWithMaximumTimestamp()
- {
- $max = '2118-03-01 12:00:00';
-
- mt_srand(1);
- $unixTime = DateTimeProvider::unixTime($max);
- $datetimeAD = DateTimeProvider::dateTimeAD($max);
- $dateTime1 = DateTimeProvider::dateTime($max);
- $dateTimeBetween = DateTimeProvider::dateTimeBetween('2014-03-01 06:00:00', $max);
- $date = DateTimeProvider::date('Y-m-d', $max);
- $time = DateTimeProvider::time('H:i:s', $max);
- $iso8601 = DateTimeProvider::iso8601($max);
- $dateTimeThisCentury = DateTimeProvider::dateTimeThisCentury($max);
- $dateTimeThisDecade = DateTimeProvider::dateTimeThisDecade($max);
- $dateTimeThisMonth = DateTimeProvider::dateTimeThisMonth($max);
- $amPm = DateTimeProvider::amPm($max);
- $dayOfMonth = DateTimeProvider::dayOfMonth($max);
- $dayOfWeek = DateTimeProvider::dayOfWeek($max);
- $month = DateTimeProvider::month($max);
- $monthName = DateTimeProvider::monthName($max);
- $year = DateTimeProvider::year($max);
- $dateTimeThisYear = DateTimeProvider::dateTimeThisYear($max);
- mt_srand();
-
- //regenerate Random Date with same seed and same maximum end timestamp
- mt_srand(1);
- $this->assertEquals($unixTime, DateTimeProvider::unixTime($max));
- $this->assertEquals($datetimeAD, DateTimeProvider::dateTimeAD($max));
- $this->assertEquals($dateTime1, DateTimeProvider::dateTime($max));
- $this->assertEquals($dateTimeBetween, DateTimeProvider::dateTimeBetween('2014-03-01 06:00:00', $max));
- $this->assertEquals($date, DateTimeProvider::date('Y-m-d', $max));
- $this->assertEquals($time, DateTimeProvider::time('H:i:s', $max));
- $this->assertEquals($iso8601, DateTimeProvider::iso8601($max));
- $this->assertEquals($dateTimeThisCentury, DateTimeProvider::dateTimeThisCentury($max));
- $this->assertEquals($dateTimeThisDecade, DateTimeProvider::dateTimeThisDecade($max));
- $this->assertEquals($dateTimeThisMonth, DateTimeProvider::dateTimeThisMonth($max));
- $this->assertEquals($amPm, DateTimeProvider::amPm($max));
- $this->assertEquals($dayOfMonth, DateTimeProvider::dayOfMonth($max));
- $this->assertEquals($dayOfWeek, DateTimeProvider::dayOfWeek($max));
- $this->assertEquals($month, DateTimeProvider::month($max));
- $this->assertEquals($monthName, DateTimeProvider::monthName($max));
- $this->assertEquals($year, DateTimeProvider::year($max));
- $this->assertEquals($dateTimeThisYear, DateTimeProvider::dateTimeThisYear($max));
- mt_srand();
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/HtmlLoremTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/HtmlLoremTest.php
deleted file mode 100644
index f7814faf..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/HtmlLoremTest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-addProvider(new HtmlLorem($faker));
- $node = $faker->randomHtml(6, 10);
- $this->assertStringStartsWith("", $node);
- $this->assertStringEndsWith("\n", $node);
- }
-
- public function testRandomHtmlReturnsValidHTMLString(){
- $faker = new Generator();
- $faker->addProvider(new HtmlLorem($faker));
- $node = $faker->randomHtml(6, 10);
- $dom = new \DOMDocument();
- $error = $dom->loadHTML($node);
- $this->assertTrue($error);
- }
-
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/ImageTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/ImageTest.php
deleted file mode 100644
index c73992ce..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/ImageTest.php
+++ /dev/null
@@ -1,76 +0,0 @@
-assertRegExp('#^https://lorempixel.com/640/480/#', Image::imageUrl());
- }
-
- public function testImageUrlAcceptsCustomWidthAndHeight()
- {
- $this->assertRegExp('#^https://lorempixel.com/800/400/#', Image::imageUrl(800, 400));
- }
-
- public function testImageUrlAcceptsCustomCategory()
- {
- $this->assertRegExp('#^https://lorempixel.com/800/400/nature/#', Image::imageUrl(800, 400, 'nature'));
- }
-
- public function testImageUrlAcceptsCustomText()
- {
- $this->assertRegExp('#^https://lorempixel.com/800/400/nature/Faker#', Image::imageUrl(800, 400, 'nature', false, 'Faker'));
- }
-
- public function testImageUrlAddsARandomGetParameterByDefault()
- {
- $url = Image::imageUrl(800, 400);
- $splitUrl = preg_split('/\?/', $url);
-
- $this->assertEquals(count($splitUrl), 2);
- $this->assertRegexp('#\d{5}#', $splitUrl[1]);
- }
-
- /**
- * @expectedException \InvalidArgumentException
- */
- public function testUrlWithDimensionsAndBadCategory()
- {
- Image::imageUrl(800, 400, 'bullhonky');
- }
-
- public function testDownloadWithDefaults()
- {
- $url = "http://lorempixel.com/";
- $curlPing = curl_init($url);
- curl_setopt($curlPing, CURLOPT_TIMEOUT, 5);
- curl_setopt($curlPing, CURLOPT_CONNECTTIMEOUT, 5);
- curl_setopt($curlPing, CURLOPT_RETURNTRANSFER, true);
- $data = curl_exec($curlPing);
- $httpCode = curl_getinfo($curlPing, CURLINFO_HTTP_CODE);
- curl_close($curlPing);
-
- if ($httpCode < 200 | $httpCode > 300) {
- $this->markTestSkipped("LoremPixel is offline, skipping image download");
- }
-
- $file = Image::image(sys_get_temp_dir());
- $this->assertFileExists($file);
- if (function_exists('getimagesize')) {
- list($width, $height, $type, $attr) = getimagesize($file);
- $this->assertEquals(640, $width);
- $this->assertEquals(480, $height);
- $this->assertEquals(constant('IMAGETYPE_JPEG'), $type);
- } else {
- $this->assertEquals('jpg', pathinfo($file, PATHINFO_EXTENSION));
- }
- if (file_exists($file)) {
- unlink($file);
- }
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/InternetTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/InternetTest.php
deleted file mode 100644
index 93fe7b48..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/InternetTest.php
+++ /dev/null
@@ -1,167 +0,0 @@
-addProvider(new Lorem($faker));
- $faker->addProvider(new Person($faker));
- $faker->addProvider(new Internet($faker));
- $faker->addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- public function localeDataProvider()
- {
- $providerPath = realpath(__DIR__ . '/../../../src/Faker/Provider');
- $localePaths = array_filter(glob($providerPath . '/*', GLOB_ONLYDIR));
- foreach ($localePaths as $path) {
- $parts = explode('/', $path);
- $locales[] = array($parts[count($parts) - 1]);
- }
-
- return $locales;
- }
-
- /**
- * @link http://stackoverflow.com/questions/12026842/how-to-validate-an-email-address-in-php
- *
- * @dataProvider localeDataProvider
- */
- public function testEmailIsValid($locale)
- {
- if ($locale !== 'en_US' && !class_exists('Transliterator')) {
- $this->markTestSkipped('Transliterator class not available (intl extension)');
- }
-
- $this->loadLocalProviders($locale);
- $pattern = '/^(?!(?:(?:\\x22?\\x5C[\\x00-\\x7E]\\x22?)|(?:\\x22?[^\\x5C\\x22]\\x22?)){255,})(?!(?:(?:\\x22?\\x5C[\\x00-\\x7E]\\x22?)|(?:\\x22?[^\\x5C\\x22]\\x22?)){65,}@)(?:(?:[\\x21\\x23-\\x27\\x2A\\x2B\\x2D\\x2F-\\x39\\x3D\\x3F\\x5E-\\x7E]+)|(?:\\x22(?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x21\\x23-\\x5B\\x5D-\\x7F]|(?:\\x5C[\\x00-\\x7F]))*\\x22))(?:\\.(?:(?:[\\x21\\x23-\\x27\\x2A\\x2B\\x2D\\x2F-\\x39\\x3D\\x3F\\x5E-\\x7E]+)|(?:\\x22(?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x21\\x23-\\x5B\\x5D-\\x7F]|(?:\\x5C[\\x00-\\x7F]))*\\x22)))*@(?:(?:(?!.*[^.]{64,})(?:(?:(?:xn--)?[a-z0-9]+(?:-+[a-z0-9]+)*\\.){1,126}){1,}(?:(?:[a-z][a-z0-9]*)|(?:(?:xn--)[a-z0-9]+))(?:-+[a-z0-9]+)*)|(?:\\[(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){7})|(?:(?!(?:.*[a-f0-9][:\\]]){7,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?)))|(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){5}:)|(?:(?!(?:.*[a-f0-9]:){5,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3}:)?)))?(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))(?:\\.(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))){3}))\\]))$/iD';
- $emailAddress = $this->faker->email();
- $this->assertRegExp($pattern, $emailAddress);
- }
-
- /**
- * @dataProvider localeDataProvider
- */
- public function testUsernameIsValid($locale)
- {
- if ($locale !== 'en_US' && !class_exists('Transliterator')) {
- $this->markTestSkipped('Transliterator class not available (intl extension)');
- }
-
- $this->loadLocalProviders($locale);
- $pattern = '/^[A-Za-z0-9]+([._][A-Za-z0-9]+)*$/';
- $username = $this->faker->username();
- $this->assertRegExp($pattern, $username);
- }
-
- /**
- * @dataProvider localeDataProvider
- */
- public function testDomainnameIsValid($locale)
- {
- if ($locale !== 'en_US' && !class_exists('Transliterator')) {
- $this->markTestSkipped('Transliterator class not available (intl extension)');
- }
-
- $this->loadLocalProviders($locale);
- $pattern = '/^[a-z]+(\.[a-z]+)+$/';
- $domainName = $this->faker->domainName();
- $this->assertRegExp($pattern, $domainName);
- }
-
- /**
- * @dataProvider localeDataProvider
- */
- public function testDomainwordIsValid($locale)
- {
- if ($locale !== 'en_US' && !class_exists('Transliterator')) {
- $this->markTestSkipped('Transliterator class not available (intl extension)');
- }
-
- $this->loadLocalProviders($locale);
- $pattern = '/^[a-z]+$/';
- $domainWord = $this->faker->domainWord();
- $this->assertRegExp($pattern, $domainWord);
- }
-
- public function loadLocalProviders($locale)
- {
- $providerPath = realpath(__DIR__ . '/../../../src/Faker/Provider');
- if (file_exists($providerPath.'/'.$locale.'/Internet.php')) {
- $internet = "\\Faker\\Provider\\$locale\\Internet";
- $this->faker->addProvider(new $internet($this->faker));
- }
- if (file_exists($providerPath.'/'.$locale.'/Person.php')) {
- $person = "\\Faker\\Provider\\$locale\\Person";
- $this->faker->addProvider(new $person($this->faker));
- }
- if (file_exists($providerPath.'/'.$locale.'/Company.php')) {
- $company = "\\Faker\\Provider\\$locale\\Company";
- $this->faker->addProvider(new $company($this->faker));
- }
- }
-
- public function testPasswordIsValid()
- {
- $this->assertRegexp('/^.{6}$/', $this->faker->password(6, 6));
- }
-
- public function testSlugIsValid()
- {
- $pattern = '/^[a-z0-9-]+$/';
- $slug = $this->faker->slug();
- $this->assertSame(preg_match($pattern, $slug), 1);
- }
-
- public function testUrlIsValid()
- {
- $url = $this->faker->url();
- $this->assertNotFalse(filter_var($url, FILTER_VALIDATE_URL));
- }
-
- public function testLocalIpv4()
- {
- $this->assertNotFalse(filter_var(Internet::localIpv4(), FILTER_VALIDATE_IP, FILTER_FLAG_IPV4));
- }
-
- public function testIpv4()
- {
- $this->assertNotFalse(filter_var($this->faker->ipv4(), FILTER_VALIDATE_IP, FILTER_FLAG_IPV4));
- }
-
- public function testIpv4NotLocalNetwork()
- {
- $this->assertNotRegExp('/\A0\./', $this->faker->ipv4());
- }
-
- public function testIpv4NotBroadcast()
- {
- $this->assertNotEquals('255.255.255.255', $this->faker->ipv4());
- }
-
- public function testIpv6()
- {
- $this->assertNotFalse(filter_var($this->faker->ipv6(), FILTER_VALIDATE_IP, FILTER_FLAG_IPV6));
- }
-
- public function testMacAddress()
- {
- $this->assertRegExp('/^([0-9A-F]{2}[:]){5}([0-9A-F]{2})$/i', Internet::macAddress());
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/LocalizationTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/LocalizationTest.php
deleted file mode 100644
index 6cfcc891..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/LocalizationTest.php
+++ /dev/null
@@ -1,27 +0,0 @@
-assertNotNull($faker->name(), 'Localized Name Provider ' . $matches[1] . ' does not throw errors');
- }
- }
-
- public function testLocalizedAddressProvidersDoNotThrowErrors()
- {
- foreach (glob(__DIR__ . '/../../../src/Faker/Provider/*/Address.php') as $localizedAddress) {
- preg_match('#/([a-zA-Z_]+)/Address\.php#', $localizedAddress, $matches);
- $faker = Factory::create($matches[1]);
- $this->assertNotNull($faker->address(), 'Localized Address Provider ' . $matches[1] . ' does not throw errors');
- }
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/LoremTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/LoremTest.php
deleted file mode 100644
index 16d98891..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/LoremTest.php
+++ /dev/null
@@ -1,109 +0,0 @@
-assertEquals('Word word word word.', TestableLorem::text(24));
- }
-
- public function testTextReturnsSentencesWhenAskedSizeLessThan100()
- {
- $this->assertEquals('This is a test sentence. This is a test sentence. This is a test sentence.', TestableLorem::text(99));
- }
-
- public function testTextReturnsParagraphsWhenAskedSizeGreaterOrEqualThanThan100()
- {
- $this->assertEquals('This is a test paragraph. It has three sentences. Exactly three.', TestableLorem::text(100));
- }
-
- public function testSentenceWithZeroNbWordsReturnsEmptyString()
- {
- $this->assertEquals('', Lorem::sentence(0));
- }
-
- public function testSentenceWithNegativeNbWordsReturnsEmptyString()
- {
- $this->assertEquals('', Lorem::sentence(-1));
- }
-
- public function testParagraphWithZeroNbSentencesReturnsEmptyString()
- {
- $this->assertEquals('', Lorem::paragraph(0));
- }
-
- public function testParagraphWithNegativeNbSentencesReturnsEmptyString()
- {
- $this->assertEquals('', Lorem::paragraph(-1));
- }
-
- public function testSentenceWithPositiveNbWordsReturnsAtLeastOneWord()
- {
- $sentence = Lorem::sentence(1);
-
- $this->assertGreaterThan(1, strlen($sentence));
- $this->assertGreaterThanOrEqual(1, count(explode(' ', $sentence)));
- }
-
- public function testParagraphWithPositiveNbSentencesReturnsAtLeastOneWord()
- {
- $paragraph = Lorem::paragraph(1);
-
- $this->assertGreaterThan(1, strlen($paragraph));
- $this->assertGreaterThanOrEqual(1, count(explode(' ', $paragraph)));
- }
-
- public function testWordssAsText()
- {
- $words = TestableLorem::words(2, true);
-
- $this->assertEquals('word word', $words);
- }
-
- public function testSentencesAsText()
- {
- $sentences = TestableLorem::sentences(2, true);
-
- $this->assertEquals('This is a test sentence. This is a test sentence.', $sentences);
- }
-
- public function testParagraphsAsText()
- {
- $paragraphs = TestableLorem::paragraphs(2, true);
-
- $expected = "This is a test paragraph. It has three sentences. Exactly three.\n\nThis is a test paragraph. It has three sentences. Exactly three.";
- $this->assertEquals($expected, $paragraphs);
- }
-}
-
-class TestableLorem extends Lorem
-{
-
- public static function word()
- {
- return 'word';
- }
-
- public static function sentence($nbWords = 5, $variableNbWords = true)
- {
- return 'This is a test sentence.';
- }
-
- public static function paragraph($nbSentences = 3, $variableNbSentences = true)
- {
- return 'This is a test paragraph. It has three sentences. Exactly three.';
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/MiscellaneousTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/MiscellaneousTest.php
deleted file mode 100644
index 6a29cd55..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/MiscellaneousTest.php
+++ /dev/null
@@ -1,59 +0,0 @@
-assertContains(Miscellaneous::boolean(), array(true, false));
- }
-
- public function testMd5()
- {
- $this->assertRegExp('/^[a-z0-9]{32}$/', Miscellaneous::md5());
- }
-
- public function testSha1()
- {
- $this->assertRegExp('/^[a-z0-9]{40}$/', Miscellaneous::sha1());
- }
-
- public function testSha256()
- {
- $this->assertRegExp('/^[a-z0-9]{64}$/', Miscellaneous::sha256());
- }
-
- public function testLocale()
- {
- $this->assertRegExp('/^[a-z]{2,3}_[A-Z]{2}$/', Miscellaneous::locale());
- }
-
- public function testCountryCode()
- {
- $this->assertRegExp('/^[A-Z]{2}$/', Miscellaneous::countryCode());
- }
-
- public function testCountryISOAlpha3()
- {
- $this->assertRegExp('/^[A-Z]{3}$/', Miscellaneous::countryISOAlpha3());
- }
-
- public function testLanguage()
- {
- $this->assertRegExp('/^[a-z]{2}$/', Miscellaneous::languageCode());
- }
-
- public function testCurrencyCode()
- {
- $this->assertRegExp('/^[A-Z]{3}$/', Miscellaneous::currencyCode());
- }
-
- public function testEmoji()
- {
- $this->assertRegExp('/^[\x{1F600}-\x{1F637}]$/u', Miscellaneous::emoji());
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/PaymentTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/PaymentTest.php
deleted file mode 100644
index 966b9d63..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/PaymentTest.php
+++ /dev/null
@@ -1,209 +0,0 @@
-addProvider(new BaseProvider($faker));
- $faker->addProvider(new DateTimeProvider($faker));
- $faker->addProvider(new PersonProvider($faker));
- $faker->addProvider(new PaymentProvider($faker));
- $this->faker = $faker;
- }
-
- public function localeDataProvider()
- {
- $providerPath = realpath(__DIR__ . '/../../../src/Faker/Provider');
- $localePaths = array_filter(glob($providerPath . '/*', GLOB_ONLYDIR));
- foreach ($localePaths as $path) {
- $parts = explode('/', $path);
- $locales[] = array($parts[count($parts) - 1]);
- }
-
- return $locales;
- }
-
- public function loadLocalProviders($locale)
- {
- $providerPath = realpath(__DIR__ . '/../../../src/Faker/Provider');
- if (file_exists($providerPath.'/'.$locale.'/Payment.php')) {
- $payment = "\\Faker\\Provider\\$locale\\Payment";
- $this->faker->addProvider(new $payment($this->faker));
- }
- }
-
- public function testCreditCardTypeReturnsValidVendorName()
- {
- $this->assertContains($this->faker->creditCardType, array('Visa', 'Visa Retired', 'MasterCard', 'American Express', 'Discover Card'));
- }
-
- public function creditCardNumberProvider()
- {
- return array(
- array('Discover Card', '/^6011\d{12}$/'),
- array('Visa', '/^4\d{15}$/'),
- array('Visa Retired', '/^4\d{12}$/'),
- array('MasterCard', '/^(5[1-5]|2[2-7])\d{14}$/')
- );
- }
-
- /**
- * @dataProvider creditCardNumberProvider
- */
- public function testCreditCardNumberReturnsValidCreditCardNumber($type, $regexp)
- {
- $cardNumber = $this->faker->creditCardNumber($type);
- $this->assertRegExp($regexp, $cardNumber);
- $this->assertTrue(Luhn::isValid($cardNumber));
- }
-
- public function testCreditCardNumberCanFormatOutput()
- {
- $this->assertRegExp('/^6011-\d{4}-\d{4}-\d{4}$/', $this->faker->creditCardNumber('Discover Card', true));
- }
-
- public function testCreditCardExpirationDateReturnsValidDateByDefault()
- {
- $expirationDate = $this->faker->creditCardExpirationDate;
- $this->assertTrue(intval($expirationDate->format('U')) > strtotime('now'));
- $this->assertTrue(intval($expirationDate->format('U')) < strtotime('+36 months'));
- }
-
- public function testRandomCard()
- {
- $cardDetails = $this->faker->creditCardDetails;
- $this->assertEquals(count($cardDetails), 4);
- $this->assertEquals(array('type', 'number', 'name', 'expirationDate'), array_keys($cardDetails));
- }
-
- protected $ibanFormats = array(
- 'AD' => '/^AD\d{2}\d{4}\d{4}[A-Z0-9]{12}$/',
- 'AE' => '/^AE\d{2}\d{3}\d{16}$/',
- 'AL' => '/^AL\d{2}\d{8}[A-Z0-9]{16}$/',
- 'AT' => '/^AT\d{2}\d{5}\d{11}$/',
- 'AZ' => '/^AZ\d{2}[A-Z]{4}[A-Z0-9]{20}$/',
- 'BA' => '/^BA\d{2}\d{3}\d{3}\d{8}\d{2}$/',
- 'BE' => '/^BE\d{2}\d{3}\d{7}\d{2}$/',
- 'BG' => '/^BG\d{2}[A-Z]{4}\d{4}\d{2}[A-Z0-9]{8}$/',
- 'BH' => '/^BH\d{2}[A-Z]{4}[A-Z0-9]{14}$/',
- 'BR' => '/^BR\d{2}\d{8}\d{5}\d{10}[A-Z]{1}[A-Z0-9]{1}$/',
- 'CH' => '/^CH\d{2}\d{5}[A-Z0-9]{12}$/',
- 'CR' => '/^CR\d{2}\d{3}\d{14}$/',
- 'CY' => '/^CY\d{2}\d{3}\d{5}[A-Z0-9]{16}$/',
- 'CZ' => '/^CZ\d{2}\d{4}\d{6}\d{10}$/',
- 'DE' => '/^DE\d{2}\d{8}\d{10}$/',
- 'DK' => '/^DK\d{2}\d{4}\d{9}\d{1}$/',
- 'DO' => '/^DO\d{2}[A-Z0-9]{4}\d{20}$/',
- 'EE' => '/^EE\d{2}\d{2}\d{2}\d{11}\d{1}$/',
- 'ES' => '/^ES\d{2}\d{4}\d{4}\d{1}\d{1}\d{10}$/',
- 'FI' => '/^FI\d{2}\d{6}\d{7}\d{1}$/',
- 'FR' => '/^FR\d{2}\d{5}\d{5}[A-Z0-9]{11}\d{2}$/',
- 'GB' => '/^GB\d{2}[A-Z]{4}\d{6}\d{8}$/',
- 'GE' => '/^GE\d{2}[A-Z]{2}\d{16}$/',
- 'GI' => '/^GI\d{2}[A-Z]{4}[A-Z0-9]{15}$/',
- 'GR' => '/^GR\d{2}\d{3}\d{4}[A-Z0-9]{16}$/',
- 'GT' => '/^GT\d{2}[A-Z0-9]{4}[A-Z0-9]{20}$/',
- 'HR' => '/^HR\d{2}\d{7}\d{10}$/',
- 'HU' => '/^HU\d{2}\d{3}\d{4}\d{1}\d{15}\d{1}$/',
- 'IE' => '/^IE\d{2}[A-Z]{4}\d{6}\d{8}$/',
- 'IL' => '/^IL\d{2}\d{3}\d{3}\d{13}$/',
- 'IS' => '/^IS\d{2}\d{4}\d{2}\d{6}\d{10}$/',
- 'IT' => '/^IT\d{2}[A-Z]{1}\d{5}\d{5}[A-Z0-9]{12}$/',
- 'KW' => '/^KW\d{2}[A-Z]{4}\d{22}$/',
- 'KZ' => '/^KZ\d{2}\d{3}[A-Z0-9]{13}$/',
- 'LB' => '/^LB\d{2}\d{4}[A-Z0-9]{20}$/',
- 'LI' => '/^LI\d{2}\d{5}[A-Z0-9]{12}$/',
- 'LT' => '/^LT\d{2}\d{5}\d{11}$/',
- 'LU' => '/^LU\d{2}\d{3}[A-Z0-9]{13}$/',
- 'LV' => '/^LV\d{2}[A-Z]{4}[A-Z0-9]{13}$/',
- 'MC' => '/^MC\d{2}\d{5}\d{5}[A-Z0-9]{11}\d{2}$/',
- 'MD' => '/^MD\d{2}[A-Z0-9]{2}[A-Z0-9]{18}$/',
- 'ME' => '/^ME\d{2}\d{3}\d{13}\d{2}$/',
- 'MK' => '/^MK\d{2}\d{3}[A-Z0-9]{10}\d{2}$/',
- 'MR' => '/^MR\d{2}\d{5}\d{5}\d{11}\d{2}$/',
- 'MT' => '/^MT\d{2}[A-Z]{4}\d{5}[A-Z0-9]{18}$/',
- 'MU' => '/^MU\d{2}[A-Z]{4}\d{2}\d{2}\d{12}\d{3}[A-Z]{3}$/',
- 'NL' => '/^NL\d{2}[A-Z]{4}\d{10}$/',
- 'NO' => '/^NO\d{2}\d{4}\d{6}\d{1}$/',
- 'PK' => '/^PK\d{2}[A-Z]{4}[A-Z0-9]{16}$/',
- 'PL' => '/^PL\d{2}\d{8}\d{16}$/',
- 'PS' => '/^PS\d{2}[A-Z]{4}[A-Z0-9]{21}$/',
- 'PT' => '/^PT\d{2}\d{4}\d{4}\d{11}\d{2}$/',
- 'RO' => '/^RO\d{2}[A-Z]{4}[A-Z0-9]{16}$/',
- 'RS' => '/^RS\d{2}\d{3}\d{13}\d{2}$/',
- 'SA' => '/^SA\d{2}\d{2}[A-Z0-9]{18}$/',
- 'SE' => '/^SE\d{2}\d{3}\d{16}\d{1}$/',
- 'SI' => '/^SI\d{2}\d{5}\d{8}\d{2}$/',
- 'SK' => '/^SK\d{2}\d{4}\d{6}\d{10}$/',
- 'SM' => '/^SM\d{2}[A-Z]{1}\d{5}\d{5}[A-Z0-9]{12}$/',
- 'TN' => '/^TN\d{2}\d{2}\d{3}\d{13}\d{2}$/',
- 'TR' => '/^TR\d{2}\d{5}\d{1}[A-Z0-9]{16}$/',
- 'VG' => '/^VG\d{2}[A-Z]{4}\d{16}$/',
- );
-
- /**
- * @dataProvider localeDataProvider
- */
- public function testBankAccountNumber($locale)
- {
- $parts = explode('_', $locale);
- $countryCode = array_pop($parts);
-
- if (!isset($this->ibanFormats[$countryCode])) {
- // No IBAN format available
- return;
- }
-
- $this->loadLocalProviders($locale);
-
- try {
- $iban = $this->faker->bankAccountNumber;
- } catch (\InvalidArgumentException $e) {
- // Not implemented, nothing to test
- $this->markTestSkipped("bankAccountNumber not implemented for $locale");
- return;
- }
-
- // Test format
- $this->assertRegExp($this->ibanFormats[$countryCode], $iban);
-
- // Test checksum
- $this->assertTrue(Iban::isValid($iban), "Checksum for $iban is invalid");
- }
-
- public function ibanFormatProvider()
- {
- $return = array();
- foreach ($this->ibanFormats as $countryCode => $regex) {
- $return[] = array($countryCode, $regex);
- }
- return $return;
- }
- /**
- * @dataProvider ibanFormatProvider
- */
- public function testIban($countryCode, $regex)
- {
- $iban = $this->faker->iban($countryCode);
-
- // Test format
- $this->assertRegExp($regex, $iban);
-
- // Test checksum
- $this->assertTrue(Iban::isValid($iban), "Checksum for $iban is invalid");
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/PersonTest.php
deleted file mode 100644
index f53076f7..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/PersonTest.php
+++ /dev/null
@@ -1,87 +0,0 @@
-addProvider(new Person($faker));
- $this->assertContains($faker->firstName($gender), $expected);
- }
-
- public function firstNameProvider()
- {
- return array(
- array(null, array('John', 'Jane')),
- array('foobar', array('John', 'Jane')),
- array('male', array('John')),
- array('female', array('Jane')),
- );
- }
-
- public function testFirstNameMale()
- {
- $this->assertContains(Person::firstNameMale(), array('John'));
- }
-
- public function testFirstNameFemale()
- {
- $this->assertContains(Person::firstNameFemale(), array('Jane'));
- }
-
- /**
- * @dataProvider titleProvider
- */
- public function testTitle($gender, $expected)
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $this->assertContains($faker->title($gender), $expected);
- }
-
- public function titleProvider()
- {
- return array(
- array(null, array('Mr.', 'Mrs.', 'Ms.', 'Miss', 'Dr.', 'Prof.')),
- array('foobar', array('Mr.', 'Mrs.', 'Ms.', 'Miss', 'Dr.', 'Prof.')),
- array('male', array('Mr.', 'Dr.', 'Prof.')),
- array('female', array('Mrs.', 'Ms.', 'Miss', 'Dr.', 'Prof.')),
- );
- }
-
- public function testTitleMale()
- {
- $this->assertContains(Person::titleMale(), array('Mr.', 'Dr.', 'Prof.'));
- }
-
- public function testTitleFemale()
- {
- $this->assertContains(Person::titleFemale(), array('Mrs.', 'Ms.', 'Miss', 'Dr.', 'Prof.'));
- }
-
- public function testLastNameReturnsDoe()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $this->assertEquals($faker->lastName(), 'Doe');
- }
-
- public function testNameReturnsFirstNameAndLastName()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $this->assertContains($faker->name(), array('John Doe', 'Jane Doe'));
- $this->assertContains($faker->name('foobar'), array('John Doe', 'Jane Doe'));
- $this->assertContains($faker->name('male'), array('John Doe'));
- $this->assertContains($faker->name('female'), array('Jane Doe'));
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/PhoneNumberTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/PhoneNumberTest.php
deleted file mode 100644
index 520ecea3..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/PhoneNumberTest.php
+++ /dev/null
@@ -1,36 +0,0 @@
-addProvider(new PhoneNumber($faker));
- $this->faker = $faker;
- }
-
- public function testPhoneNumberFormat()
- {
- $number = $this->faker->e164PhoneNumber();
- $this->assertRegExp('/^\+[0-9]{11,}$/', $number);
- }
-
- public function testImeiReturnsValidNumber()
- {
- $imei = $this->faker->imei();
- $this->assertTrue(Luhn::isValid($imei));
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/ProviderOverrideTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/ProviderOverrideTest.php
deleted file mode 100644
index 61d7d63a..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/ProviderOverrideTest.php
+++ /dev/null
@@ -1,194 +0,0 @@
-
- */
-
-namespace Faker\Test\Provider;
-
-use Faker;
-use PHPUnit\Framework\TestCase;
-
-/**
- * Class ProviderOverrideTest
- *
- * @package Faker\Test\Provider
- *
- * This class tests a large portion of all locale specific providers. It does not test the entire stack, because each
- * locale specific provider (can) has specific implementations. The goal of this test is to test the common denominator
- * and to try to catch possible invalid multi-byte sequences.
- */
-class ProviderOverrideTest extends TestCase
-{
- /**
- * Constants with regular expression patterns for testing the output.
- *
- * Regular expressions are sensitive for malformed strings (e.g.: strings with incorrect encodings) so by using
- * PCRE for the tests, even though they seem fairly pointless, we test for incorrect encodings also.
- */
- const TEST_STRING_REGEX = '/.+/u';
-
- /**
- * Slightly more specific for e-mail, the point isn't to properly validate e-mails.
- */
- const TEST_EMAIL_REGEX = '/^(.+)@(.+)$/ui';
-
- /**
- * @dataProvider localeDataProvider
- * @param string $locale
- */
- public function testAddress($locale = null)
- {
- $faker = Faker\Factory::create($locale);
-
- $this->assertRegExp(static::TEST_STRING_REGEX, $faker->city);
- $this->assertRegExp(static::TEST_STRING_REGEX, $faker->postcode);
- $this->assertRegExp(static::TEST_STRING_REGEX, $faker->address);
- $this->assertRegExp(static::TEST_STRING_REGEX, $faker->country);
- }
-
-
- /**
- * @dataProvider localeDataProvider
- * @param string $locale
- */
- public function testCompany($locale = null)
- {
- $faker = Faker\Factory::create($locale);
-
- $this->assertRegExp(static::TEST_STRING_REGEX, $faker->company);
- }
-
-
- /**
- * @dataProvider localeDataProvider
- * @param string $locale
- */
- public function testDateTime($locale = null)
- {
- $faker = Faker\Factory::create($locale);
-
- $this->assertRegExp(static::TEST_STRING_REGEX, $faker->century);
- $this->assertRegExp(static::TEST_STRING_REGEX, $faker->timezone);
- }
-
-
- /**
- * @dataProvider localeDataProvider
- * @param string $locale
- */
- public function testInternet($locale = null)
- {
- if ($locale && $locale !== 'en_US' && !class_exists('Transliterator')) {
- $this->markTestSkipped('Transliterator class not available (intl extension)');
- }
-
- $faker = Faker\Factory::create($locale);
-
- $this->assertRegExp(static::TEST_STRING_REGEX, $faker->userName);
-
- $this->assertRegExp(static::TEST_EMAIL_REGEX, $faker->email);
- $this->assertRegExp(static::TEST_EMAIL_REGEX, $faker->safeEmail);
- $this->assertRegExp(static::TEST_EMAIL_REGEX, $faker->freeEmail);
- $this->assertRegExp(static::TEST_EMAIL_REGEX, $faker->companyEmail);
- }
-
-
- /**
- * @dataProvider localeDataProvider
- * @param string $locale
- */
- public function testPerson($locale = null)
- {
- $faker = Faker\Factory::create($locale);
-
- $this->assertRegExp(static::TEST_STRING_REGEX, $faker->name);
- $this->assertRegExp(static::TEST_STRING_REGEX, $faker->title);
- $this->assertRegExp(static::TEST_STRING_REGEX, $faker->firstName);
- $this->assertRegExp(static::TEST_STRING_REGEX, $faker->lastName);
- }
-
-
- /**
- * @dataProvider localeDataProvider
- * @param string $locale
- */
- public function testPhoneNumber($locale = null)
- {
- $faker = Faker\Factory::create($locale);
-
- $this->assertRegExp(static::TEST_STRING_REGEX, $faker->phoneNumber);
- }
-
-
- /**
- * @dataProvider localeDataProvider
- * @param string $locale
- */
- public function testUserAgent($locale = null)
- {
- $faker = Faker\Factory::create($locale);
-
- $this->assertRegExp(static::TEST_STRING_REGEX, $faker->userAgent);
- }
-
-
- /**
- * @dataProvider localeDataProvider
- *
- * @param null $locale
- * @param string $locale
- */
- public function testUuid($locale = null)
- {
- $faker = Faker\Factory::create($locale);
-
- $this->assertRegExp(static::TEST_STRING_REGEX, $faker->uuid);
- }
-
-
- /**
- * @return array
- */
- public function localeDataProvider()
- {
- $locales = $this->getAllLocales();
- $data = array();
-
- foreach ($locales as $locale) {
- $data[] = array(
- $locale
- );
- }
-
- return $data;
- }
-
-
- /**
- * Returns all locales as array values
- *
- * @return array
- */
- private function getAllLocales()
- {
- static $locales = array();
-
- if ( ! empty($locales)) {
- return $locales;
- }
-
- // Finding all PHP files in the xx_XX directories
- $providerDir = __DIR__ .'/../../../src/Faker/Provider';
- foreach (glob($providerDir .'/*_*/*.php') as $file) {
- $localisation = basename(dirname($file));
-
- if (isset($locales[ $localisation ])) {
- continue;
- }
-
- $locales[ $localisation ] = $localisation;
- }
-
- return $locales;
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/TextTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/TextTest.php
deleted file mode 100644
index a43d8d43..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/TextTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-addProvider(new Text($generator));
- $generator->seed(0);
-
- $lengths = array(10, 20, 50, 70, 90, 120, 150, 200, 500);
-
- foreach ($lengths as $length) {
- $this->assertLessThan($length, $generator->realText($length));
- }
- }
-
- /**
- * @expectedException \InvalidArgumentException
- */
- public function testTextMaxIndex()
- {
- $generator = new Generator();
- $generator->addProvider(new Text($generator));
- $generator->seed(0);
- $generator->realText(200, 11);
- }
-
- /**
- * @expectedException \InvalidArgumentException
- */
- public function testTextMinIndex()
- {
- $generator = new Generator();
- $generator->addProvider(new Text($generator));
- $generator->seed(0);
- $generator->realText(200, 0);
- }
-
- /**
- * @expectedException \InvalidArgumentException
- */
- public function testTextMinLength()
- {
- $generator = new Generator();
- $generator->addProvider(new Text($generator));
- $generator->seed(0);
- $generator->realText(9);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/UserAgentTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/UserAgentTest.php
deleted file mode 100644
index 5ba2459c..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/UserAgentTest.php
+++ /dev/null
@@ -1,39 +0,0 @@
-assertNotNull(UserAgent::userAgent());
- }
-
- public function testFirefoxUserAgent()
- {
- $this->stringContains(' Firefox/', UserAgent::firefox());
- }
-
- public function testSafariUserAgent()
- {
- $this->stringContains('Safari/', UserAgent::safari());
- }
-
- public function testInternetExplorerUserAgent()
- {
- $this->assertStringStartsWith('Mozilla/5.0 (compatible; MSIE ', UserAgent::internetExplorer());
- }
-
- public function testOperaUserAgent()
- {
- $this->assertStringStartsWith('Opera/', UserAgent::opera());
- }
-
- public function testChromeUserAgent()
- {
- $this->stringContains('(KHTML, like Gecko) Chrome/', UserAgent::chrome());
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/UuidTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/UuidTest.php
deleted file mode 100644
index 5c639cac..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/UuidTest.php
+++ /dev/null
@@ -1,32 +0,0 @@
-assertTrue($this->isUuid($uuid));
- }
-
- public function testUuidExpectedSeed()
- {
- if (pack('L', 0x6162797A) == pack('N', 0x6162797A)) {
- $this->markTestSkipped('Big Endian');
- }
- $faker = new Generator();
- $faker->seed(123);
- $this->assertEquals("8e2e0c84-50dd-367c-9e66-f3ab455c78d6", BaseProvider::uuid());
- $this->assertEquals("073eb60a-902c-30ab-93d0-a94db371f6c8", BaseProvider::uuid());
- }
-
- protected function isUuid($uuid)
- {
- return is_string($uuid) && (bool) preg_match('/^[a-f0-9]{8,8}-(?:[a-f0-9]{4,4}-){3,3}[a-f0-9]{12,12}$/i', $uuid);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/ar_JO/InternetTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/ar_JO/InternetTest.php
deleted file mode 100644
index 33d70c43..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/ar_JO/InternetTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-addProvider(new Person($faker));
- $faker->addProvider(new Internet($faker));
- $faker->addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- public function testEmailIsValid()
- {
- $email = $this->faker->email();
- $this->assertNotFalse(filter_var($email, FILTER_VALIDATE_EMAIL));
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/ar_SA/InternetTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/ar_SA/InternetTest.php
deleted file mode 100644
index 8059f000..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/ar_SA/InternetTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-addProvider(new Person($faker));
- $faker->addProvider(new Internet($faker));
- $faker->addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- public function testEmailIsValid()
- {
- $email = $this->faker->email();
- $this->assertNotFalse(filter_var($email, FILTER_VALIDATE_EMAIL));
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/at_AT/PaymentTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/at_AT/PaymentTest.php
deleted file mode 100644
index f62dae81..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/at_AT/PaymentTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-addProvider(new Payment($faker));
- $this->faker = $faker;
- }
-
- public function testVatIsValid()
- {
- $vat = $this->faker->vat();
- $unspacedVat = $this->faker->vat(false);
- $this->assertRegExp('/^(AT U\d{8})$/', $vat);
- $this->assertRegExp('/^(ATU\d{8})$/', $unspacedVat);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/bg_BG/PaymentTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/bg_BG/PaymentTest.php
deleted file mode 100644
index b5645f9b..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/bg_BG/PaymentTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-addProvider(new Payment($faker));
- $this->faker = $faker;
- }
-
- public function testVatIsValid()
- {
- $vat = $this->faker->vat();
- $unspacedVat = $this->faker->vat(false);
- $this->assertRegExp('/^(BG \d{9,10})$/', $vat);
- $this->assertRegExp('/^(BG\d{9,10})$/', $unspacedVat);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/bn_BD/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/bn_BD/PersonTest.php
deleted file mode 100644
index e82fe8b7..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/bn_BD/PersonTest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- public function testIfFirstNameMaleCanReturnData()
- {
- $firstNameMale = $this->faker->firstNameMale();
- $this->assertNotEmpty($firstNameMale);
- }
-
- public function testIfFirstNameFemaleCanReturnData()
- {
- $firstNameFemale = $this->faker->firstNameFemale();
- $this->assertNotEmpty($firstNameFemale);
- }
-}
-?>
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/cs_CZ/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/cs_CZ/PersonTest.php
deleted file mode 100644
index 0b198725..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/cs_CZ/PersonTest.php
+++ /dev/null
@@ -1,47 +0,0 @@
-addProvider(new Person($faker));
- $faker->addProvider(new Miscellaneous($faker));
-
- for ($i = 0; $i < 1000; $i++) {
- $birthNumber = $faker->birthNumber();
- $birthNumber = str_replace('/', '', $birthNumber);
-
- // check date
- $year = intval(substr($birthNumber, 0, 2), 10);
- $month = intval(substr($birthNumber, 2, 2), 10);
- $day = intval(substr($birthNumber, 4, 2), 10);
-
- // make 4 digit year from 2 digit representation
- $year += $year < 54 ? 2000 : 1900;
-
- // adjust special cases for month
- if ($month > 50) $month -= 50;
- if ($year >= 2004 && $month > 20) $month -= 20;
-
- $this->assertTrue(checkdate($month, $day, $year), "Birth number $birthNumber: date $year/$month/$day is invalid.");
-
- // check CRC if presented
- if (strlen($birthNumber) == 10) {
- $crc = intval(substr($birthNumber, -1), 10);
- $refCrc = intval(substr($birthNumber, 0, -1), 10) % 11;
- if ($refCrc == 10) {
- $refCrc = 0;
- }
- $this->assertEquals($crc, $refCrc, "Birth number $birthNumber: checksum $crc doesn't match expected $refCrc.");
- }
- }
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/da_DK/InternetTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/da_DK/InternetTest.php
deleted file mode 100644
index 43c09be4..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/da_DK/InternetTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-addProvider(new Person($faker));
- $faker->addProvider(new Internet($faker));
- $faker->addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- public function testEmailIsValid()
- {
- $email = $this->faker->email();
- $this->assertNotFalse(filter_var($email, FILTER_VALIDATE_EMAIL));
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/de_AT/InternetTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/de_AT/InternetTest.php
deleted file mode 100644
index 1d778eea..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/de_AT/InternetTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-addProvider(new Person($faker));
- $faker->addProvider(new Internet($faker));
- $faker->addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- public function testEmailIsValid()
- {
- $email = $this->faker->email();
- $this->assertNotFalse(filter_var($email, FILTER_VALIDATE_EMAIL));
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/de_AT/PhoneNumberTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/de_AT/PhoneNumberTest.php
deleted file mode 100644
index 7cc6e6b1..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/de_AT/PhoneNumberTest.php
+++ /dev/null
@@ -1,29 +0,0 @@
-addProvider(new PhoneNumber($faker));
- $this->faker = $faker;
- }
-
- public function testPhoneNumberFormat()
- {
- $number = $this->faker->phoneNumber;
- $this->assertRegExp('/^06\d{2} \d{7}|\+43 \d{4} \d{4}(-\d{2})?$/', $number);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/de_CH/AddressTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/de_CH/AddressTest.php
deleted file mode 100644
index 668f2117..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/de_CH/AddressTest.php
+++ /dev/null
@@ -1,70 +0,0 @@
-addProvider(new Address($faker));
- $faker->addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- /**
- * @test
- */
- public function canton ()
- {
- $canton = $this->faker->canton();
- $this->assertInternalType('array', $canton);
- $this->assertCount(1, $canton);
-
- foreach ($canton as $cantonShort => $cantonName){
- $this->assertInternalType('string', $cantonShort);
- $this->assertEquals(2, strlen($cantonShort));
- $this->assertInternalType('string', $cantonName);
- $this->assertGreaterThan(2, strlen($cantonName));
- }
- }
-
- /**
- * @test
- */
- public function cantonName ()
- {
- $cantonName = $this->faker->cantonName();
- $this->assertInternalType('string', $cantonName);
- $this->assertGreaterThan(2, strlen($cantonName));
- }
-
- /**
- * @test
- */
- public function cantonShort ()
- {
- $cantonShort = $this->faker->cantonShort();
- $this->assertInternalType('string', $cantonShort);
- $this->assertEquals(2, strlen($cantonShort));
- }
-
- /**
- * @test
- */
- public function address (){
- $address = $this->faker->address();
- $this->assertInternalType('string', $address);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/de_CH/InternetTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/de_CH/InternetTest.php
deleted file mode 100644
index 31dcc552..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/de_CH/InternetTest.php
+++ /dev/null
@@ -1,36 +0,0 @@
-addProvider(new Person($faker));
- $faker->addProvider(new Internet($faker));
- $faker->addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- /**
- * @test
- */
- public function emailIsValid()
- {
- $email = $this->faker->email();
- $this->assertNotFalse(filter_var($email, FILTER_VALIDATE_EMAIL));
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/de_CH/PhoneNumberTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/de_CH/PhoneNumberTest.php
deleted file mode 100644
index 5102297c..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/de_CH/PhoneNumberTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-addProvider(new PhoneNumber($faker));
- $this->faker = $faker;
- }
-
- public function testPhoneNumber()
- {
- $this->assertRegExp('/^0\d{2} ?\d{3} ?\d{2} ?\d{2}|\+41 ?(\(0\))?\d{2} ?\d{3} ?\d{2} ?\d{2}$/', $this->faker->phoneNumber());
- }
-
- public function testMobileNumber()
- {
- $this->assertRegExp('/^07[56789] ?\d{3} ?\d{2} ?\d{2}$/', $this->faker->mobileNumber());
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/de_DE/InternetTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/de_DE/InternetTest.php
deleted file mode 100644
index a15f3664..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/de_DE/InternetTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-addProvider(new Person($faker));
- $faker->addProvider(new Internet($faker));
- $faker->addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- public function testEmailIsValid()
- {
- $email = $this->faker->email();
- $this->assertNotFalse(filter_var($email, FILTER_VALIDATE_EMAIL));
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/el_GR/TextTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/el_GR/TextTest.php
deleted file mode 100644
index 3f03dd3a..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/el_GR/TextTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-textClass = new \ReflectionClass('Faker\Provider\el_GR\Text');
- }
-
- protected function getMethod($name) {
- $method = $this->textClass->getMethod($name);
-
- $method->setAccessible(true);
-
- return $method;
- }
-
- /** @test */
- function testItShouldAppendEndPunctToTheEndOfString()
- {
- $this->assertSame(
- 'Και δεν άκουσες το κλοπακλόπ, κλοπακλόπ, κλοπακλόπ.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('Και δεν άκουσες το κλοπακλόπ, κλοπακλόπ, κλοπακλόπ '))
- );
-
- $this->assertSame(
- 'Και δεν άκουσες το κλοπακλόπ, κλοπακλόπ, κλοπακλόπ.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('Και δεν άκουσες το κλοπακλόπ, κλοπακλόπ, κλοπακλόπ—'))
- );
-
- $this->assertSame(
- 'Και δεν άκουσες το κλοπακλόπ, κλοπακλόπ, κλοπακλόπ.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('Και δεν άκουσες το κλοπακλόπ, κλοπακλόπ, κλοπακλόπ,'))
- );
-
- $this->assertSame(
- 'Και δεν άκουσες το κλοπακλόπ, κλοπακλόπ, κλοπακλόπ!.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('Και δεν άκουσες το κλοπακλόπ, κλοπακλόπ, κλοπακλόπ! '))
- );
-
- $this->assertSame(
- 'Και δεν άκουσες το κλοπακλόπ, κλοπακλόπ, κλοπακλόπ.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('Και δεν άκουσες το κλοπακλόπ, κλοπακλόπ, κλοπακλόπ; '))
- );
-
- $this->assertSame(
- 'Και δεν άκουσες το κλοπακλόπ, κλοπακλόπ, κλοπακλόπ.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('Και δεν άκουσες το κλοπακλόπ, κλοπακλόπ, κλοπακλόπ: '))
- );
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_AU/AddressTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_AU/AddressTest.php
deleted file mode 100644
index b2f72e8b..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_AU/AddressTest.php
+++ /dev/null
@@ -1,49 +0,0 @@
-addProvider(new Address($faker));
- $this->faker = $faker;
- }
-
- public function testCityPrefix()
- {
- $cityPrefix = $this->faker->cityPrefix();
- $this->assertNotEmpty($cityPrefix);
- $this->assertInternalType('string', $cityPrefix);
- $this->assertRegExp('/[A-Z][a-z]+/', $cityPrefix);
- }
-
- public function testStreetSuffix()
- {
- $streetSuffix = $this->faker->streetSuffix();
- $this->assertNotEmpty($streetSuffix);
- $this->assertInternalType('string', $streetSuffix);
- $this->assertRegExp('/[A-Z][a-z]+/', $streetSuffix);
- }
-
- public function testState()
- {
- $state = $this->faker->state();
- $this->assertNotEmpty($state);
- $this->assertInternalType('string', $state);
- $this->assertRegExp('/[A-Z][a-z]+/', $state);
- }
-}
-
-?>
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_CA/AddressTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_CA/AddressTest.php
deleted file mode 100644
index 6b1ece72..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_CA/AddressTest.php
+++ /dev/null
@@ -1,69 +0,0 @@
-addProvider(new Address($faker));
- $this->faker = $faker;
- }
-
- /**
- * Test the validity of province
- */
- public function testProvince()
- {
- $province = $this->faker->province();
- $this->assertNotEmpty($province);
- $this->assertInternalType('string', $province);
- $this->assertRegExp('/[A-Z][a-z]+/', $province);
- }
-
- /**
- * Test the validity of province abbreviation
- */
- public function testProvinceAbbr()
- {
- $provinceAbbr = $this->faker->provinceAbbr();
- $this->assertNotEmpty($provinceAbbr);
- $this->assertInternalType('string', $provinceAbbr);
- $this->assertRegExp('/^[A-Z]{2}$/', $provinceAbbr);
- }
-
- /**
- * Test the validity of postcode letter
- */
- public function testPostcodeLetter()
- {
- $postcodeLetter = $this->faker->randomPostcodeLetter();
- $this->assertNotEmpty($postcodeLetter);
- $this->assertInternalType('string', $postcodeLetter);
- $this->assertRegExp('/^[A-Z]{1}$/', $postcodeLetter);
- }
-
- /**
- * Test the validity of Canadian postcode
- */
- public function testPostcode()
- {
- $postcode = $this->faker->postcode();
- $this->assertNotEmpty($postcode);
- $this->assertInternalType('string', $postcode);
- $this->assertRegExp('/^[A-Za-z]\d[A-Za-z][ -]?\d[A-Za-z]\d$/', $postcode);
- }
-}
-
-?>
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_GB/AddressTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_GB/AddressTest.php
deleted file mode 100644
index 762e11a8..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_GB/AddressTest.php
+++ /dev/null
@@ -1,36 +0,0 @@
-addProvider(new Address($faker));
- $this->faker = $faker;
- }
-
- /**
- *
- */
- public function testPostcode()
- {
-
- $postcode = $this->faker->postcode();
- $this->assertNotEmpty($postcode);
- $this->assertInternalType('string', $postcode);
- $this->assertRegExp('@^(GIR ?0AA|[A-PR-UWYZ]([0-9]{1,2}|([A-HK-Y][0-9]([0-9ABEHMNPRV-Y])?)|[0-9][A-HJKPS-UW]) ?[0-9][ABD-HJLNP-UW-Z]{2})$@i', $postcode);
-
- }
-
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_IN/AddressTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_IN/AddressTest.php
deleted file mode 100644
index 125cbdf0..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_IN/AddressTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-addProvider(new Address($faker));
- $this->faker = $faker;
- }
-
- public function testCity()
- {
- $city = $this->faker->city();
- $this->assertNotEmpty($city);
- $this->assertInternalType('string', $city);
- $this->assertRegExp('/[A-Z][a-z]+/', $city);
- }
-
- public function testCountry()
- {
- $country = $this->faker->country();
- $this->assertNotEmpty($country);
- $this->assertInternalType('string', $country);
- $this->assertRegExp('/[A-Z][a-z]+/', $country);
- }
-
- public function testLocalityName()
- {
- $localityName = $this->faker->localityName();
- $this->assertNotEmpty($localityName);
- $this->assertInternalType('string', $localityName);
- $this->assertRegExp('/[A-Z][a-z]+/', $localityName);
- }
-
- public function testAreaSuffix()
- {
- $areaSuffix = $this->faker->areaSuffix();
- $this->assertNotEmpty($areaSuffix);
- $this->assertInternalType('string', $areaSuffix);
- $this->assertRegExp('/[A-Z][a-z]+/', $areaSuffix);
- }
-}
-
-?>
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_NG/AddressTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_NG/AddressTest.php
deleted file mode 100644
index 27c591b7..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_NG/AddressTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-addProvider(new Address($faker));
- $this->faker = $faker;
- }
-
- /**
- *
- */
- public function testPostcodeIsNotEmptyAndIsValid()
- {
- $postcode = $this->faker->postcode();
-
- $this->assertNotEmpty($postcode);
- $this->assertInternalType('string', $postcode);
- }
-
- /**
- * Test the name of the Nigerian State/County
- */
- public function testCountyIsAValidString()
- {
- $county = $this->faker->county;
-
- $this->assertNotEmpty($county);
- $this->assertInternalType('string', $county);
- }
-
- /**
- * Test the name of the Nigerian Region in a State.
- */
- public function testRegionIsAValidString()
- {
- $region = $this->faker->region;
-
- $this->assertNotEmpty($region);
- $this->assertInternalType('string', $region);
- }
-
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_NG/InternetTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_NG/InternetTest.php
deleted file mode 100644
index 6ebc620f..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_NG/InternetTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-addProvider(new Person($faker));
- $faker->addProvider(new Internet($faker));
- $this->faker = $faker;
- }
-
- public function testEmailIsValid()
- {
- $email = $this->faker->email();
- $this->assertNotFalse(filter_var($email, FILTER_VALIDATE_EMAIL));
- $this->assertNotEmpty($email);
- $this->assertInternalType('string', $email);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_NG/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_NG/PersonTest.php
deleted file mode 100644
index 2180e36e..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_NG/PersonTest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- public function testPersonNameIsAValidString()
- {
- $name = $this->faker->name;
-
- $this->assertNotEmpty($name);
- $this->assertInternalType('string', $name);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_NG/PhoneNumberTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_NG/PhoneNumberTest.php
deleted file mode 100644
index c591b8ab..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_NG/PhoneNumberTest.php
+++ /dev/null
@@ -1,26 +0,0 @@
-addProvider(new PhoneNumber($faker));
- $this->faker = $faker;
- }
-
- public function testPhoneNumberReturnsPhoneNumberWithOrWithoutCountryCode()
- {
- $phoneNumber = $this->faker->phoneNumber();
-
- $this->assertNotEmpty($phoneNumber);
- $this->assertInternalType('string', $phoneNumber);
- $this->assertRegExp('/^(0|(\+234))\s?[789][01]\d\s?(\d{3}\s?\d{4})/', $phoneNumber);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_NZ/PhoneNumberTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_NZ/PhoneNumberTest.php
deleted file mode 100644
index 14b145c7..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_NZ/PhoneNumberTest.php
+++ /dev/null
@@ -1,36 +0,0 @@
-addProvider(new PhoneNumber($faker));
- $this->faker = $faker;
- }
-
- public function testIfPhoneNumberCanReturnData()
- {
- $number = $this->faker->phoneNumber;
- $this->assertNotEmpty($number);
- }
-
- public function phoneNumberFormat()
- {
- $number = $this->faker->phoneNumber;
- $this->assertRegExp('/(^\([0]\d{1}\))(\d{7}$)|(^\([0][2]\d{1}\))(\d{6,8}$)|([0][8][0][0])([\s])(\d{5,8}$)/', $number);
- }
-}
-?>
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_PH/AddressTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_PH/AddressTest.php
deleted file mode 100644
index 19367a49..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_PH/AddressTest.php
+++ /dev/null
@@ -1,50 +0,0 @@
-addProvider(new Address($faker));
- $this->faker = $faker;
- }
-
- public function testProvince()
- {
- $province = $this->faker->province();
- $this->assertNotEmpty($province);
- $this->assertInternalType('string', $province);
- }
-
- public function testCity()
- {
- $city = $this->faker->city();
- $this->assertNotEmpty($city);
- $this->assertInternalType('string', $city);
- }
-
- public function testMunicipality()
- {
- $municipality = $this->faker->municipality();
- $this->assertNotEmpty($municipality);
- $this->assertInternalType('string', $municipality);
- }
-
- public function testBarangay()
- {
- $barangay = $this->faker->barangay();
- $this->assertInternalType('string', $barangay);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_SG/AddressTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_SG/AddressTest.php
deleted file mode 100644
index abc62aac..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_SG/AddressTest.php
+++ /dev/null
@@ -1,27 +0,0 @@
-addProvider(new Address($faker));
- $this->faker = $faker;
- }
-
- public function testStreetNumber()
- {
- $this->assertRegExp('/^\d{2,3}$/', $this->faker->streetNumber());
- }
-
- public function testBlockNumber()
- {
- $this->assertRegExp('/^Blk\s*\d{2,3}[A-H]*$/i', $this->faker->blockNumber());
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_SG/PhoneNumberTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_SG/PhoneNumberTest.php
deleted file mode 100644
index c8bb13f8..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_SG/PhoneNumberTest.php
+++ /dev/null
@@ -1,46 +0,0 @@
-faker = Factory::create('en_SG');
- $this->faker->seed(1);
- $this->faker->addProvider(new PhoneNumber($this->faker));
- }
-
- // http://en.wikipedia.org/wiki/Telephone_numbers_in_Singapore#Numbering_plan
- // y means 0 to 8 only
- // x means 0 to 9
- public function testMobilePhoneNumberStartWith9Returns9yxxxxxx()
- {
- $startsWith9 = false;
- while (!$startsWith9) {
- $mobileNumber = $this->faker->mobileNumber();
- $startsWith9 = preg_match('/^(\+65|65)?\s*9/', $mobileNumber);
- }
-
- $this->assertRegExp('/^(\+65|65)?\s*9\s*[0-8]{3}\s*\d{4}$/', $mobileNumber);
- }
-
- // http://en.wikipedia.org/wiki/Telephone_numbers_in_Singapore#Numbering_plan
- // z means 1 to 9 only
- // x means 0 to 9
- public function testMobilePhoneNumberStartWith7Or8Returns7Or8zxxxxxx()
- {
- $startsWith7Or8 = false;
- while (!$startsWith7Or8) {
- $mobileNumber = $this->faker->mobileNumber();
- $startsWith7Or8 = preg_match('/^(\+65|65)?\s*[7-8]/', $mobileNumber);
- }
- $this->assertRegExp('/^(\+65|65)?\s*[7-8]\s*[1-9]{3}\s*\d{4}$/', $mobileNumber);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_UG/AddressTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_UG/AddressTest.php
deleted file mode 100644
index 571d93fb..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_UG/AddressTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-addProvider(new Address($faker));
- $this->faker = $faker;
- }
-
- /**
- * @test
- */
- public function testCityName()
- {
- $city = $this->faker->cityName();
- $this->assertNotEmpty($city);
- $this->assertInternalType('string', $city);
- }
-
- /**
- * @test
- */
- public function testDistrict()
- {
- $district = $this->faker->district();
- $this->assertNotEmpty($district);
- $this->assertInternalType('string', $district);
- }
-
- /**
- * @test
- */
- public function testRegion()
- {
- $region = $this->faker->region();
- $this->assertNotEmpty($region);
- $this->assertInternaltype('string', $region);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_US/CompanyTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_US/CompanyTest.php
deleted file mode 100644
index 735d8339..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_US/CompanyTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- /**
- * @link https://stackoverflow.com/questions/4242433/regex-for-ein-number-and-ssn-number-format-in-jquery/35471665#35471665
- */
- public function testEin()
- {
- $number = $this->faker->ein;
-
- // should be in the format ##-#######, with a valid prefix
- $this->assertRegExp('/^(0[1-6]||1[0-6]|2[0-7]|[35]\d|[468][0-8]|7[1-7]|9[0-58-9])-\d{7}$/', $number);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_US/PaymentTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_US/PaymentTest.php
deleted file mode 100644
index ec82691b..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_US/PaymentTest.php
+++ /dev/null
@@ -1,85 +0,0 @@
-addProvider(new Payment($faker));
- $this->faker = $faker;
- }
-
- public function testBankAccountNumber()
- {
- $accNo = $this->faker->bankAccountNumber;
- $this->assertTrue(ctype_digit($accNo));
- $this->assertLessThanOrEqual(17, strlen($accNo));
- }
-
- public function testBankRoutingNumber()
- {
- $routingNo = $this->faker->bankRoutingNumber;
- $this->assertRegExp('/^\d{9}$/', $routingNo);
- $this->assertEquals(Payment::calculateRoutingNumberChecksum($routingNo), $routingNo[8]);
- }
-
- public function routingNumberProvider()
- {
- return array(
- array('122105155'),
- array('082000549'),
- array('121122676'),
- array('122235821'),
- array('102101645'),
- array('102000021'),
- array('123103729'),
- array('071904779'),
- array('081202759'),
- array('074900783'),
- array('104000029'),
- array('073000545'),
- array('101000187'),
- array('042100175'),
- array('083900363'),
- array('091215927'),
- array('091300023'),
- array('091000022'),
- array('081000210'),
- array('101200453'),
- array('092900383'),
- array('104000029'),
- array('121201694'),
- array('107002312'),
- array('091300023'),
- array('041202582'),
- array('042000013'),
- array('123000220'),
- array('091408501'),
- array('064000059'),
- array('124302150'),
- array('125000105'),
- array('075000022'),
- array('307070115'),
- array('091000022'),
- );
- }
-
- /**
- * @dataProvider routingNumberProvider
- */
- public function testCalculateRoutingNumberChecksum($routingNo)
- {
- $this->assertEquals($routingNo[8], Payment::calculateRoutingNumberChecksum($routingNo), $routingNo);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_US/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_US/PersonTest.php
deleted file mode 100644
index 3ddb38b2..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_US/PersonTest.php
+++ /dev/null
@@ -1,48 +0,0 @@
-addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- public function testSsn()
- {
- for ($i = 0; $i < 100; $i++) {
- $number = $this->faker->ssn;
-
- // should be in the format ###-##-####
- $this->assertRegExp('/^[0-9]{3}-[0-9]{2}-[0-9]{4}$/', $number);
-
- $parts = explode("-", $number);
-
- // first part must be between 001 and 899, excluding 666
- $this->assertNotEquals(666, $parts[0]);
- $this->assertGreaterThan(0, $parts[0]);
- $this->assertLessThan(900, $parts[0]);
-
- // second part must be between 01 and 99
- $this->assertGreaterThan(0, $parts[1]);
- $this->assertLessThan(100, $parts[1]);
-
- // the third part must be between 0001 and 9999
- $this->assertGreaterThan(0, $parts[2]);
- $this->assertLessThan(10000, $parts[2]);
- }
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_US/PhoneNumberTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_US/PhoneNumberTest.php
deleted file mode 100644
index a54ff882..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_US/PhoneNumberTest.php
+++ /dev/null
@@ -1,85 +0,0 @@
-addProvider(new PhoneNumber($faker));
- $this->faker = $faker;
- }
-
- public function testPhoneNumber()
- {
- for ($i = 0; $i < 100; $i++) {
- $number = $this->faker->phoneNumber;
- $baseNumber = preg_replace('/ *x.*$/', '', $number); // Remove possible extension
- $digits = array_values(array_filter(str_split($baseNumber), 'ctype_digit'));
-
- // Prefix '1' allowed
- if (count($digits) === 11) {
- $this->assertEquals('1', $digits[0]);
- $digits = array_slice($digits, 1);
- }
-
- // 10 digits
- $this->assertEquals(10, count($digits));
-
- // Last two digits of area code cannot be identical
- $this->assertNotEquals($digits[1], $digits[2]);
-
- // Last two digits of exchange code cannot be 1
- if ($digits[4] === 1) {
- $this->assertNotEquals($digits[4], $digits[5]);
- }
-
- // Test format
- $this->assertRegExp('/^(\+?1)?([ -.]*\d{3}[ -.]*| *\(\d{3}\) *)\d{3}[-.]?\d{4}$/', $baseNumber);
- }
- }
-
- public function testTollFreeAreaCode()
- {
- $this->assertContains($this->faker->tollFreeAreaCode, array(800, 822, 833, 844, 855, 866, 877, 888, 880, 887, 889));
- }
-
- public function testTollFreePhoneNumber()
- {
- for ($i = 0; $i < 100; $i++) {
- $number = $this->faker->tollFreePhoneNumber;
- $digits = array_values(array_filter(str_split($number), 'ctype_digit'));
-
- // Prefix '1' allowed
- if (count($digits) === 11) {
- $this->assertEquals('1', $digits[0]);
- $digits = array_slice($digits, 1);
- }
-
- // 10 digits
- $this->assertEquals(10, count($digits));
-
- $areaCode = $digits[0] . $digits[1] . $digits[2];
- $this->assertContains($areaCode, array('800', '822', '833', '844', '855', '866', '877', '888', '880', '887', '889'));
-
- // Last two digits of exchange code cannot be 1
- if ($digits[4] === 1) {
- $this->assertNotEquals($digits[4], $digits[5]);
- }
-
- // Test format
- $this->assertRegExp('/^(\+?1)?([ -.]*\d{3}[ -.]*| *\(\d{3}\) *)\d{3}[-.]?\d{4}$/', $number);
- }
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_ZA/CompanyTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_ZA/CompanyTest.php
deleted file mode 100644
index 0e51d492..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_ZA/CompanyTest.php
+++ /dev/null
@@ -1,27 +0,0 @@
-addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- public function testGenerateValidCompanyNumber()
- {
- $companyRegNo = $this->faker->companyNumber();
-
- $this->assertEquals(14, strlen($companyRegNo));
- $this->assertRegExp('#^\d{4}/\d{6}/\d{2}$#', $companyRegNo);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_ZA/InternetTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_ZA/InternetTest.php
deleted file mode 100644
index 02c29404..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_ZA/InternetTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-addProvider(new Person($faker));
- $faker->addProvider(new Internet($faker));
- $faker->addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- public function testEmailIsValid()
- {
- $email = $this->faker->email();
- $this->assertNotFalse(filter_var($email, FILTER_VALIDATE_EMAIL));
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_ZA/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_ZA/PersonTest.php
deleted file mode 100644
index d7973e72..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_ZA/PersonTest.php
+++ /dev/null
@@ -1,69 +0,0 @@
-addProvider(new Person($faker));
- $faker->addProvider(new DateTime($faker));
- $this->faker = $faker;
- }
-
- public function testIdNumberWithDefaults()
- {
- $idNumber = $this->faker->idNumber();
-
- $this->assertEquals(13, strlen($idNumber));
- $this->assertRegExp('#^\d{13}$#', $idNumber);
- $this->assertInternalType('string', $idNumber);
- }
-
- public function testIdNumberForMales()
- {
- $idNumber = $this->faker->idNumber(new \DateTime(), true, 'male');
-
- $genderDigit = substr($idNumber, 6, 1);
-
- $this->assertContains($genderDigit, array('5', '6', '7', '8', '9'));
- }
-
- public function testIdNumberForFemales()
- {
- $idNumber = $this->faker->idNumber(new \DateTime(), true, 'female');
-
- $genderDigit = substr($idNumber, 6, 1);
-
- $this->assertContains($genderDigit, array('0', '1', '2', '3', '4'));
- }
-
- public function testLicenceCode()
- {
- $validLicenceCodes = array('A', 'A1', 'B', 'C', 'C1', 'C2', 'EB', 'EC', 'EC1', 'I', 'L', 'L1');
-
- $this->assertContains($this->faker->licenceCode, $validLicenceCodes);
- }
-
- public function testMaleTitles()
- {
- $validMaleTitles = array('Mr.', 'Dr.', 'Prof.', 'Rev.', 'Hon.');
-
- $this->assertContains(Person::titleMale(), $validMaleTitles);
- }
-
- public function testFemaleTitles()
- {
- $validateFemaleTitles = array('Mrs.', 'Ms.', 'Miss', 'Dr.', 'Prof.', 'Rev.', 'Hon.');
-
- $this->assertContains(Person::titleFemale(), $validateFemaleTitles);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/en_ZA/PhoneNumberTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/en_ZA/PhoneNumberTest.php
deleted file mode 100644
index 37b781b5..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/en_ZA/PhoneNumberTest.php
+++ /dev/null
@@ -1,66 +0,0 @@
-addProvider(new PhoneNumber($faker));
- $this->faker = $faker;
- }
-
- public function testPhoneNumber()
- {
- for ($i = 0; $i < 10; $i++) {
- $number = $this->faker->phoneNumber;
-
- $digits = array_values(array_filter(str_split($number), 'ctype_digit'));
-
- // 10 digits
- if($digits[0] = 2 && $digits[1] == 7) {
- $this->assertLessThanOrEqual(11, count($digits));
- } else {
- $this->assertGreaterThanOrEqual(10, count($digits));
- }
- }
- }
-
- public function testTollFreePhoneNumber()
- {
- for ($i = 0; $i < 10; $i++) {
- $number = $this->faker->tollFreeNumber;
- $digits = array_values(array_filter(str_split($number), 'ctype_digit'));
-
- if (count($digits) === 11) {
- $this->assertEquals('0', $digits[0]);
- }
-
- $areaCode = $digits[0] . $digits[1] . $digits[2] . $digits[3];
- $this->assertContains($areaCode, array('0800', '0860', '0861', '0862'));
- }
- }
-
- public function testCellPhoneNumber()
- {
- for ($i = 0; $i < 10; $i++) {
- $number = $this->faker->mobileNumber;
- $digits = array_values(array_filter(str_split($number), 'ctype_digit'));
-
- if($digits[0] = 2 && $digits[1] == 7) {
- $this->assertLessThanOrEqual(11, count($digits));
- } else {
- $this->assertGreaterThanOrEqual(10, count($digits));
- }
-
- $this->assertRegExp('/^(\+27|27)?(\()?0?([6][0-4]|[7][1-9]|[8][1-9])(\))?( |-|\.|_)?(\d{3})( |-|\.|_)?(\d{4})/', $number);
- }
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/es_ES/PaymentTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/es_ES/PaymentTest.php
deleted file mode 100644
index e636544b..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/es_ES/PaymentTest.php
+++ /dev/null
@@ -1,61 +0,0 @@
-addProvider(new Payment($faker));
- $this->faker = $faker;
- }
-
- public function testVAT()
- {
- $vat = $this->faker->vat();
-
- $this->assertTrue($this->isValidCIF($vat));
- }
-
- /**
- * Validation taken from https://github.com/amnesty/drupal-nif-nie-cif-validator/
- * @link https://github.com/amnesty/drupal-nif-nie-cif-validator/blob/master/includes/nif-nie-cif.php
- */
- function isValidCIF($docNumber)
- {
- $fixedDocNumber = strtoupper($docNumber);
-
- return $this->isValidCIFFormat($fixedDocNumber);
- }
-
- function isValidCIFFormat($docNumber)
- {
- return $this->respectsDocPattern($docNumber, '/^[PQSNWR][0-9][0-9][0-9][0-9][0-9][0-9][0-9][A-Z0-9]/')
- ||
- $this->respectsDocPattern($docNumber, '/^[ABCDEFGHJUV][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]/');
- }
-
- function respectsDocPattern($givenString, $pattern)
- {
- $isValid = FALSE;
- $fixedString = strtoupper($givenString);
- if (is_int(substr($fixedString, 0, 1))) {
- $fixedString = substr("000000000" . $givenString, -9);
- }
- if (preg_match($pattern, $fixedString)) {
- $isValid = TRUE;
- }
- return $isValid;
- }
-
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/es_ES/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/es_ES/PersonTest.php
deleted file mode 100644
index e29f3f90..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/es_ES/PersonTest.php
+++ /dev/null
@@ -1,46 +0,0 @@
-seed(1);
- $faker->addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- public function testDNI()
- {
- $dni = $this->faker->dni;
- $this->assertTrue($this->isValidDNI($dni));
- }
-
- // validation taken from http://kiwwito.com/php-function-for-spanish-dni-nie-validation/
- public function isValidDNI($string)
- {
- if (strlen($string) != 9 ||
- preg_match('/^[XYZ]?([0-9]{7,8})([A-Z])$/i', $string, $matches) !== 1) {
- return false;
- }
-
- $map = 'TRWAGMYFPDXBNJZSQVHLCKE';
-
- list(, $number, $letter) = $matches;
-
- return strtoupper($letter) === $map[((int) $number) % 23];
- }
-
- public function testLicenceCode()
- {
- $validLicenceCodes = array('AM', 'A1', 'A2', 'A','B', 'B+E', 'C1', 'C1+E', 'C', 'C+E', 'D1', 'D1+E', 'D', 'D+E');
-
- $this->assertContains($this->faker->licenceCode, $validLicenceCodes);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/es_ES/TextTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/es_ES/TextTest.php
deleted file mode 100644
index a8ae3486..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/es_ES/TextTest.php
+++ /dev/null
@@ -1,27 +0,0 @@
-addProvider(new Text($faker));
- $this->faker = $faker;
- }
-
- public function testText()
- {
- $this->assertNotSame('', $this->faker->realtext(200, 2));
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/es_PE/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/es_PE/PersonTest.php
deleted file mode 100644
index 60149387..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/es_PE/PersonTest.php
+++ /dev/null
@@ -1,29 +0,0 @@
-seed(1);
- $faker->addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- public function testDNI()
- {
- $dni = $this->faker->dni;
- $this->assertRegExp('/\A[0-9]{8}\Z/', $dni);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/es_VE/CompanyTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/es_VE/CompanyTest.php
deleted file mode 100644
index 3c9b162a..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/es_VE/CompanyTest.php
+++ /dev/null
@@ -1,43 +0,0 @@
- for Faker
- * Date: 01/09/2017
- * Time: 09:45 PM
- */
-
-namespace Faker\Test\Provider\es_VE;
-
-use Faker\Generator;
-use Faker\Provider\es_VE\Company;
-use PHPUnit\Framework\TestCase;
-
-class CompanyTest extends TestCase
-{
- /**
- * @var Generator
- */
- private $faker;
-
- public function setUp()
- {
- $faker = new Generator();
- $faker->seed(1);
- $faker->addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- /**
- * national Id format validator
- */
- public function testNationalId()
- {
- $pattern = '/^[VJGECP]-?\d{8}-?\d$/';
- $rif = $this->faker->taxpayerIdentificationNumber;
- $this->assertRegExp($pattern, $rif);
-
- $rif = $this->faker->taxpayerIdentificationNumber('-');
- $this->assertRegExp($pattern, $rif);
- }
-
-
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/es_VE/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/es_VE/PersonTest.php
deleted file mode 100644
index bb42cd75..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/es_VE/PersonTest.php
+++ /dev/null
@@ -1,43 +0,0 @@
-seed(1);
- $faker->addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- /**
- * national Id format validator
- */
- public function testNationalId()
- {
- $pattern = '/(?:^V-?\d{5,9}$)|(?:^E-?\d{8,9}$)/';
-
- $cedula = $this->faker->nationalId;
- $this->assertRegExp($pattern, $cedula);
-
- $cedula = $this->faker->nationalId('-');
- $this->assertRegExp($pattern, $cedula);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/fi_FI/InternetTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/fi_FI/InternetTest.php
deleted file mode 100644
index 6009bbd1..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/fi_FI/InternetTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-addProvider(new Person($faker));
- $faker->addProvider(new Internet($faker));
- $faker->addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- public function testEmailIsValid()
- {
- $email = $this->faker->email();
- $this->assertNotFalse(filter_var($email, FILTER_VALIDATE_EMAIL));
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/fi_FI/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/fi_FI/PersonTest.php
deleted file mode 100644
index b979666e..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/fi_FI/PersonTest.php
+++ /dev/null
@@ -1,82 +0,0 @@
-addProvider(new DateTime($faker));
- $faker->addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- public function provideSeedAndExpectedReturn()
- {
- return array(
- array(1, '1800-01-01', '010100+5207'),
- array(2, '1930-08-08', '080830-508R'),
- array(3, '1999-12-31', '311299-409D'),
- array(4, '2000-01-01', '010100A039P'),
- array(5, '2015-06-17', '170615A690X')
- );
- }
-
- /**
- * @dataProvider provideSeedAndExpectedReturn
- */
- public function testPersonalIdentityNumberUsesBirthDateIfProvided($seed, $birthdate, $expected)
- {
- $faker = $this->faker;
- $faker->seed($seed);
- $pin = $faker->personalIdentityNumber(\DateTime::createFromFormat('Y-m-d', $birthdate));
- $this->assertEquals($expected, $pin);
- }
-
- public function testPersonalIdentityNumberGeneratesCompliantNumbers()
- {
- if (strtotime('1800-01-01 00:00:00')) {
- $min="1900";
- $max="2099";
- for ($i = 0; $i < 10; $i++) {
- $birthdate = $this->faker->dateTimeBetween('1800-01-01 00:00:00', '1899-12-31 23:59:59');
- $pin = $this->faker->personalIdentityNumber($birthdate, NULL, true);
- $this->assertRegExp('/^[0-9]{6}\+[0-9]{3}[0-9ABCDEFHJKLMNPRSTUVWXY]$/', $pin);
- }
- } else { // timestamp limit for 32-bit computer
- $min="1902";
- $max="2037";
- }
- for ($i = 0; $i < 10; $i++) {
- $birthdate = $this->faker->dateTimeBetween("$min-01-01 00:00:00", '1999-12-31 23:59:59');
- $pin = $this->faker->personalIdentityNumber($birthdate);
- $this->assertRegExp('/^[0-9]{6}-[0-9]{3}[0-9ABCDEFHJKLMNPRSTUVWXY]$/', $pin);
- }
- for ($i = 0; $i < 10; $i++) {
- $birthdate = $this->faker->dateTimeBetween('2000-01-01 00:00:00', "$max-12-31 23:59:59");
- $pin = $this->faker->personalIdentityNumber($birthdate);
- $this->assertRegExp('/^[0-9]{6}A[0-9]{3}[0-9ABCDEFHJKLMNPRSTUVWXY]$/', $pin);
- }
- }
-
- public function testPersonalIdentityNumberGeneratesOddValuesForMales()
- {
- $pin = $this->faker->personalIdentityNumber(null, 'male');
- $this->assertEquals(1, $pin{9} % 2);
- }
-
- public function testPersonalIdentityNumberGeneratesEvenValuesForFemales()
- {
- $pin = $this->faker->personalIdentityNumber(null, 'female');
- $this->assertEquals(0, $pin{9} % 2);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/fr_BE/PaymentTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/fr_BE/PaymentTest.php
deleted file mode 100644
index 6944c55f..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/fr_BE/PaymentTest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-addProvider(new Payment($faker));
- $this->faker = $faker;
- }
-
- public function testVatIsValid()
- {
- $vat = $this->faker->vat();
- $unspacedVat = $this->faker->vat(false);
- $this->assertRegExp('/^(BE 0\d{9})$/', $vat);
- $this->assertRegExp('/^(BE0\d{9})$/', $unspacedVat);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/fr_CH/AddressTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/fr_CH/AddressTest.php
deleted file mode 100644
index 217ac9f6..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/fr_CH/AddressTest.php
+++ /dev/null
@@ -1,70 +0,0 @@
-addProvider(new Address($faker));
- $faker->addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- /**
- * @test
- */
- public function canton ()
- {
- $canton = $this->faker->canton();
- $this->assertInternalType('array', $canton);
- $this->assertCount(1, $canton);
-
- foreach ($canton as $cantonShort => $cantonName){
- $this->assertInternalType('string', $cantonShort);
- $this->assertEquals(2, strlen($cantonShort));
- $this->assertInternalType('string', $cantonName);
- $this->assertGreaterThan(2, strlen($cantonName));
- }
- }
-
- /**
- * @test
- */
- public function cantonName ()
- {
- $cantonName = $this->faker->cantonName();
- $this->assertInternalType('string', $cantonName);
- $this->assertGreaterThan(2, strlen($cantonName));
- }
-
- /**
- * @test
- */
- public function cantonShort ()
- {
- $cantonShort = $this->faker->cantonShort();
- $this->assertInternalType('string', $cantonShort);
- $this->assertEquals(2, strlen($cantonShort));
- }
-
- /**
- * @test
- */
- public function address (){
- $address = $this->faker->address();
- $this->assertInternalType('string', $address);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/fr_CH/InternetTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/fr_CH/InternetTest.php
deleted file mode 100644
index f4e94848..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/fr_CH/InternetTest.php
+++ /dev/null
@@ -1,36 +0,0 @@
-addProvider(new Person($faker));
- $faker->addProvider(new Internet($faker));
- $faker->addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- /**
- * @test
- */
- public function emailIsValid()
- {
- $email = $this->faker->email();
- $this->assertNotFalse(filter_var($email, FILTER_VALIDATE_EMAIL));
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/fr_CH/PhoneNumberTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/fr_CH/PhoneNumberTest.php
deleted file mode 100644
index 7bfcca76..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/fr_CH/PhoneNumberTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-addProvider(new PhoneNumber($faker));
- $this->faker = $faker;
- }
-
- public function testPhoneNumber()
- {
- $this->assertRegExp('/^0\d{2} ?\d{3} ?\d{2} ?\d{2}|\+41 ?(\(0\))?\d{2} ?\d{3} ?\d{2} ?\d{2}$/', $this->faker->phoneNumber());
- }
-
- public function testMobileNumber()
- {
- $this->assertRegExp('/^07[56789] ?\d{3} ?\d{2} ?\d{2}$/', $this->faker->mobileNumber());
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/fr_FR/AddressTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/fr_FR/AddressTest.php
deleted file mode 100644
index 50b40f4b..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/fr_FR/AddressTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-addProvider(new Address($faker));
- $this->faker = $faker;
- }
-
- /**
- * @test
- */
- public function testSecondaryAddress()
- {
- $secondaryAdress = $this->faker->secondaryAddress();
- $this->assertNotEmpty($secondaryAdress);
- $this->assertInternalType('string', $secondaryAdress);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/fr_FR/CompanyTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/fr_FR/CompanyTest.php
deleted file mode 100644
index 83e54d92..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/fr_FR/CompanyTest.php
+++ /dev/null
@@ -1,75 +0,0 @@
-addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- public function testSiretReturnsAValidSiret()
- {
- $siret = $this->faker->siret(false);
- $this->assertRegExp("/^\d{14}$/", $siret);
- $this->assertTrue(Luhn::isValid($siret));
- }
-
- public function testSiretReturnsAWellFormattedSiret()
- {
- $siret = $this->faker->siret();
- $this->assertRegExp("/^\d{3}\s\d{3}\s\d{3}\s\d{5}$/", $siret);
- $siret = str_replace(' ', '', $siret);
- $this->assertTrue(Luhn::isValid($siret));
- }
-
- public function testSirenReturnsAValidSiren()
- {
- $siren = $this->faker->siren(false);
- $this->assertRegExp("/^\d{9}$/", $siren);
- $this->assertTrue(Luhn::isValid($siren));
- }
-
- public function testSirenReturnsAWellFormattedSiren()
- {
- $siren = $this->faker->siren();
- $this->assertRegExp("/^\d{3}\s\d{3}\s\d{3}$/", $siren);
- $siren = str_replace(' ', '', $siren);
- $this->assertTrue(Luhn::isValid($siren));
- }
-
- public function testCatchPhraseReturnsValidCatchPhrase()
- {
- $this->assertTrue(TestableCompany::isCatchPhraseValid($this->faker->catchPhrase()));
- }
-
- public function testIsCatchPhraseValidReturnsFalseWhenAWordsAppearsTwice()
- {
- $isCatchPhraseValid = TestableCompany::isCatchPhraseValid('La sécurité de rouler en toute sécurité');
- $this->assertFalse($isCatchPhraseValid);
- }
-
- public function testIsCatchPhraseValidReturnsTrueWhenNoWordAppearsTwice()
- {
- $isCatchPhraseValid = TestableCompany::isCatchPhraseValid('La sécurité de rouler en toute simplicité');
- $this->assertTrue($isCatchPhraseValid);
- }
-}
-
-class TestableCompany extends Company
-{
- public static function isCatchPhraseValid($catchPhrase)
- {
- return parent::isCatchPhraseValid($catchPhrase);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/fr_FR/PaymentTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/fr_FR/PaymentTest.php
deleted file mode 100644
index d00a7c83..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/fr_FR/PaymentTest.php
+++ /dev/null
@@ -1,49 +0,0 @@
-addProvider(new Payment($faker));
- $this->faker = $faker;
- }
-
- public function testFormattedVat()
- {
- $vat = $this->faker->vat(true);
- $this->assertRegExp("/^FR\s\w{2}\s\d{3}\s\d{3}\s\d{3}$/", $vat);
-
- $vat = str_replace(' ', '', $vat);
- $siren = substr($vat, 4, 12);
- $this->assertTrue(Luhn::isValid($siren));
-
- $key = (int) substr($siren, 2, 2);
- if ($key === 0) {
- $this->assertEqual($key, (12 + 3 * ($siren % 97)) % 97);
- }
- }
-
- public function testUnformattedVat()
- {
- $vat = $this->faker->vat(false);
- $this->assertRegExp("/^FR\w{2}\d{9}$/", $vat);
-
- $siren = substr($vat, 4, 12);
- $this->assertTrue(Luhn::isValid($siren));
-
- $key = (int) substr($siren, 2, 2);
- if ($key === 0) {
- $this->assertEqual($key, (12 + 3 * ($siren % 97)) % 97);
- }
- }
-}
\ No newline at end of file
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/fr_FR/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/fr_FR/PersonTest.php
deleted file mode 100644
index 8c5fc654..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/fr_FR/PersonTest.php
+++ /dev/null
@@ -1,37 +0,0 @@
-addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- public function testNIRReturnsTheRightGender()
- {
- $nir = $this->faker->nir(\Faker\Provider\Person::GENDER_MALE);
- $this->assertStringStartsWith('1', $nir);
- }
-
- public function testNIRReturnsTheRightPattern()
- {
- $nir = $this->faker->nir;
- $this->assertRegExp("/^[12]\d{5}[0-9A-B]\d{8}$/", $nir);
- }
-
- public function testNIRFormattedReturnsTheRightPattern()
- {
- $nir = $this->faker->nir(null, true);
- $this->assertRegExp("/^[12]\s\d{2}\s\d{2}\s\d{1}[0-9A-B]\s\d{3}\s\d{3}\s\d{2}$/", $nir);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/fr_FR/PhoneNumberTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/fr_FR/PhoneNumberTest.php
deleted file mode 100644
index d4179709..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/fr_FR/PhoneNumberTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-addProvider(new PhoneNumber($faker));
- $this->faker = $faker;
- }
-
- public function testMobileNumber()
- {
- $mobileNumber = $this->faker->mobileNumber();
- $this->assertRegExp('/^(\+33 |\+33 \(0\)|0)(6|7)(?:(\s{1})?\d{2}){4}$/', $mobileNumber);
- }
-
- public function testMobileNumber07Format()
- {
- $mobileNumberFormat = $this->faker->phoneNumber07();
- $this->assertRegExp('/^([3-9]{1})\d(\d{2}){3}$/', $mobileNumberFormat);
- }
-
- public function testMobileNumber07WithSeparatorFormat()
- {
- $mobileNumberFormat = $this->faker->phoneNumber07WithSeparator();
- $this->assertRegExp('/^([3-9]{1})\d( \d{2}){3}$/', $mobileNumberFormat);
- }
-
- public function testServiceNumber()
- {
- $serviceNumber = $this->faker->serviceNumber();
- $this->assertRegExp('/^(\+33 |\+33 \(0\)|0)8(?:(\s{1})?\d{2}){4}$/', $serviceNumber);
- }
-
- public function testServiceNumberFormat()
- {
- $serviceNumberFormat = $this->faker->phoneNumber08();
- $this->assertRegExp('/^((0|1|2)\d{1}|9[^46])\d{6}$/', $serviceNumberFormat);
- }
-
- public function testServiceNumberWithSeparatorFormat()
- {
- $serviceNumberFormat = $this->faker->phoneNumber08WithSeparator();
- $this->assertRegExp('/^((0|1|2)\d{1}|9[^46])( \d{2}){3}$/', $serviceNumberFormat);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/fr_FR/TextTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/fr_FR/TextTest.php
deleted file mode 100644
index c9c7a4ff..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/fr_FR/TextTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-textClass = new \ReflectionClass('Faker\Provider\fr_FR\Text');
- }
-
- protected function getMethod($name) {
- $method = $this->textClass->getMethod($name);
-
- $method->setAccessible(true);
-
- return $method;
- }
-
- /** @test */
- function testItShouldAppendEndPunctToTheEndOfString()
- {
- $this->assertSame(
- 'Que faisaient-elles maintenant? À.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('Que faisaient-elles maintenant? À '))
- );
-
- $this->assertSame(
- 'Que faisaient-elles maintenant? À.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('Que faisaient-elles maintenant? À— '))
- );
-
- $this->assertSame(
- 'Que faisaient-elles maintenant? À.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('Que faisaient-elles maintenant? À,'))
- );
-
- $this->assertSame(
- 'Que faisaient-elles maintenant? À!.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('Que faisaient-elles maintenant? À! '))
- );
-
- $this->assertSame(
- 'Que faisaient-elles maintenant? À.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('Que faisaient-elles maintenant? À: '))
- );
-
- $this->assertSame(
- 'Que faisaient-elles maintenant? À.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('Que faisaient-elles maintenant? À; '))
- );
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/id_ID/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/id_ID/PersonTest.php
deleted file mode 100644
index 5ebfeee4..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/id_ID/PersonTest.php
+++ /dev/null
@@ -1,41 +0,0 @@
-addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- public function testIfFirstNameMaleCanReturnData()
- {
- $firstNameMale = $this->faker->firstNameMale();
- $this->assertNotEmpty($firstNameMale);
- }
-
- public function testIfLastNameMaleCanReturnData()
- {
- $lastNameMale = $this->faker->lastNameMale();
- $this->assertNotEmpty($lastNameMale);
- }
-
- public function testIfFirstNameFemaleCanReturnData()
- {
- $firstNameFemale = $this->faker->firstNameFemale();
- $this->assertNotEmpty($firstNameFemale);
- }
-
- public function testIfLastNameFemaleCanReturnData()
- {
- $lastNameFemale = $this->faker->lastNameFemale();
- $this->assertNotEmpty($lastNameFemale);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/it_CH/AddressTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/it_CH/AddressTest.php
deleted file mode 100644
index 0f0df5e9..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/it_CH/AddressTest.php
+++ /dev/null
@@ -1,70 +0,0 @@
-addProvider(new Address($faker));
- $faker->addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- /**
- * @test
- */
- public function canton ()
- {
- $canton = $this->faker->canton();
- $this->assertInternalType('array', $canton);
- $this->assertCount(1, $canton);
-
- foreach ($canton as $cantonShort => $cantonName){
- $this->assertInternalType('string', $cantonShort);
- $this->assertEquals(2, strlen($cantonShort));
- $this->assertInternalType('string', $cantonName);
- $this->assertGreaterThan(2, strlen($cantonName));
- }
- }
-
- /**
- * @test
- */
- public function cantonName ()
- {
- $cantonName = $this->faker->cantonName();
- $this->assertInternalType('string', $cantonName);
- $this->assertGreaterThan(2, strlen($cantonName));
- }
-
- /**
- * @test
- */
- public function cantonShort ()
- {
- $cantonShort = $this->faker->cantonShort();
- $this->assertInternalType('string', $cantonShort);
- $this->assertEquals(2, strlen($cantonShort));
- }
-
- /**
- * @test
- */
- public function address (){
- $address = $this->faker->address();
- $this->assertInternalType('string', $address);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/it_CH/InternetTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/it_CH/InternetTest.php
deleted file mode 100644
index d46f6b7d..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/it_CH/InternetTest.php
+++ /dev/null
@@ -1,36 +0,0 @@
-addProvider(new Person($faker));
- $faker->addProvider(new Internet($faker));
- $faker->addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- /**
- * @test
- */
- public function emailIsValid()
- {
- $email = $this->faker->email();
- $this->assertNotFalse(filter_var($email, FILTER_VALIDATE_EMAIL));
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/it_CH/PhoneNumberTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/it_CH/PhoneNumberTest.php
deleted file mode 100644
index 5cda5345..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/it_CH/PhoneNumberTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-addProvider(new PhoneNumber($faker));
- $this->faker = $faker;
- }
-
- public function testPhoneNumber()
- {
- $this->assertRegExp('/^0\d{2} ?\d{3} ?\d{2} ?\d{2}|\+41 ?(\(0\))?\d{2} ?\d{3} ?\d{2} ?\d{2}$/', $this->faker->phoneNumber());
- }
-
- public function testMobileNumber()
- {
- $this->assertRegExp('/^07[56789] ?\d{3} ?\d{2} ?\d{2}$/', $this->faker->mobileNumber());
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/it_IT/CompanyTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/it_IT/CompanyTest.php
deleted file mode 100644
index 33977e13..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/it_IT/CompanyTest.php
+++ /dev/null
@@ -1,24 +0,0 @@
-addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- public function testIfTaxIdCanReturnData()
- {
- $vatId = $this->faker->vatId();
- $this->assertRegExp('/^IT[0-9]{11}$/', $vatId);
- }
-
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/it_IT/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/it_IT/PersonTest.php
deleted file mode 100644
index 3e7b1a4f..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/it_IT/PersonTest.php
+++ /dev/null
@@ -1,24 +0,0 @@
-addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- public function testIfTaxIdCanReturnData()
- {
- $taxId = $this->faker->taxId();
- $this->assertRegExp('/^[a-zA-Z]{6}[0-9]{2}[a-zA-Z][0-9]{2}[a-zA-Z][0-9]{3}[a-zA-Z]$/', $taxId);
- }
-
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/ja_JP/InternetTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/ja_JP/InternetTest.php
deleted file mode 100644
index b4a19fde..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/ja_JP/InternetTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-addProvider(new Internet($faker));
- $faker->seed(1);
-
- $this->assertEquals('akira72', $faker->userName);
- }
-
- public function testDomainName()
- {
- $faker = new Generator();
- $faker->addProvider(new Internet($faker));
- $faker->seed(1);
-
- $this->assertEquals('nakajima.com', $faker->domainName);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/ja_JP/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/ja_JP/PersonTest.php
deleted file mode 100644
index e7854826..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/ja_JP/PersonTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-addProvider(new Person($faker));
- $faker->seed(1);
-
- $this->assertEquals('アオタ ミノル', $faker->kanaName('male'));
- }
-
- public function testKanaNameFemaleReturns()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $faker->seed(1);
-
- $this->assertEquals('アオタ ミã‚', $faker->kanaName('female'));
- }
-
- public function testFirstKanaNameMaleReturns()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $faker->seed(1);
-
- $this->assertEquals('ヒデã‚', $faker->firstKanaName('male'));
- }
-
- public function testFirstKanaNameFemaleReturns()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $faker->seed(1);
-
- $this->assertEquals('マアヤ', $faker->firstKanaName('female'));
- }
-
- public function testLastKanaNameReturnsNakajima()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $faker->seed(1);
-
- $this->assertEquals('ナカジマ', $faker->lastKanaName);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/ja_JP/PhoneNumberTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/ja_JP/PhoneNumberTest.php
deleted file mode 100644
index 158718a7..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/ja_JP/PhoneNumberTest.php
+++ /dev/null
@@ -1,22 +0,0 @@
-addProvider(new PhoneNumber($faker));
-
- for ($i = 0; $i < 10; $i++) {
- $phoneNumber = $faker->phoneNumber;
- $this->assertNotEmpty($phoneNumber);
- $this->assertRegExp('/^0\d{1,4}-\d{1,4}-\d{3,4}$/', $phoneNumber);
- }
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/ka_GE/TextTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/ka_GE/TextTest.php
deleted file mode 100644
index 0201ceee..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/ka_GE/TextTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-textClass = new \ReflectionClass('Faker\Provider\el_GR\Text');
- }
-
- protected function getMethod($name) {
- $method = $this->textClass->getMethod($name);
-
- $method->setAccessible(true);
-
- return $method;
- }
-
- /** @test */
- function testItShouldAppendEndPunctToTheEndOfString()
- {
- $this->assertSame(
- 'áƒáƒ”შმáƒáƒ იტიáƒ. ჩვენც ისე.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('áƒáƒ”შმáƒáƒ იტიáƒ. ჩვენც ისე '))
- );
-
- $this->assertSame(
- 'áƒáƒ”შმáƒáƒ იტიáƒ. ჩვენც ისე.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('áƒáƒ”შმáƒáƒ იტიáƒ. ჩვენც ისე— '))
- );
-
- $this->assertSame(
- 'áƒáƒ”შმáƒáƒ იტიáƒ. ჩვენც ისე.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('áƒáƒ”შმáƒáƒ იტიáƒ. ჩვენც ისე, '))
- );
-
- $this->assertSame(
- 'áƒáƒ”შმáƒáƒ იტიáƒ. ჩვენც ისე!.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('áƒáƒ”შმáƒáƒ იტიáƒ. ჩვენც ისე! '))
- );
-
- $this->assertSame(
- 'áƒáƒ”შმáƒáƒ იტიáƒ. ჩვენც ისე.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('áƒáƒ”შმáƒáƒ იტიáƒ. ჩვენც ისე; '))
- );
-
- $this->assertSame(
- 'áƒáƒ”შმáƒáƒ იტიáƒ. ჩვენც ისე.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('áƒáƒ”შმáƒáƒ იტიáƒ. ჩვენც ისე: '))
- );
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/kk_KZ/CompanyTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/kk_KZ/CompanyTest.php
deleted file mode 100644
index b6a3c061..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/kk_KZ/CompanyTest.php
+++ /dev/null
@@ -1,32 +0,0 @@
-faker = new Generator();
-
- $this->faker->addProvider(new Company($this->faker));
- }
-
- public function testBusinessIdentificationNumberIsValid()
- {
- $registrationDate = new \DateTime('now');
- $businessIdentificationNumber = $this->faker->businessIdentificationNumber($registrationDate);
- $registrationDateAsString = $registrationDate->format('ym');
-
- $this->assertRegExp(
- "/^(" . $registrationDateAsString . ")([4-6]{1})([0-3]{1})(\\d{6})$/",
- $businessIdentificationNumber
- );
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/kk_KZ/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/kk_KZ/PersonTest.php
deleted file mode 100644
index c5657352..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/kk_KZ/PersonTest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-faker = new Generator();
-
- $this->faker->addProvider(new Person($this->faker));
- }
-
- public function testIndividualIdentificationNumberIsValid()
- {
- $birthDate = DateTime::dateTimeBetween('-30 years', '-10 years');
- $individualIdentificationNumber = $this->faker->individualIdentificationNumber($birthDate);
- $controlDigit = Person::checkSum($individualIdentificationNumber);
-
- $this->assertSame($controlDigit, (int)substr($individualIdentificationNumber, 11, 1));
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/kk_KZ/TextTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/kk_KZ/TextTest.php
deleted file mode 100644
index 2c780506..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/kk_KZ/TextTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-textClass = new \ReflectionClass('Faker\Provider\kk_KZ\Text');
- }
-
- protected function getMethod($name) {
- $method = $this->textClass->getMethod($name);
-
- $method->setAccessible(true);
-
- return $method;
- }
-
- /** @test */
- function testItShouldAppendEndPunctToTheEndOfString()
- {
- $this->assertSame(
- 'ÐрыÑтан баб кеÑенеÑÑ– - көне Отырар.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('ÐрыÑтан баб кеÑенеÑÑ– - көне Отырар '))
- );
-
- $this->assertSame(
- 'ÐрыÑтан баб кеÑенеÑÑ– - көне Отырар.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('ÐрыÑтан баб кеÑенеÑÑ– - көне Отырар— '))
- );
-
- $this->assertSame(
- 'ÐрыÑтан баб кеÑенеÑÑ– - көне Отырар.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('ÐрыÑтан баб кеÑенеÑÑ– - көне Отырар, '))
- );
-
- $this->assertSame(
- 'ÐрыÑтан баб кеÑенеÑÑ– - көне Отырар!.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('ÐрыÑтан баб кеÑенеÑÑ– - көне Отырар! '))
- );
-
- $this->assertSame(
- 'ÐрыÑтан баб кеÑенеÑÑ– - көне Отырар.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('ÐрыÑтан баб кеÑенеÑÑ– - көне Отырар: '))
- );
-
- $this->assertSame(
- 'ÐрыÑтан баб кеÑенеÑÑ– - көне Отырар.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('ÐрыÑтан баб кеÑенеÑÑ– - көне Отырар; '))
- );
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/ko_KR/TextTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/ko_KR/TextTest.php
deleted file mode 100644
index 336acc8a..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/ko_KR/TextTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-textClass = new \ReflectionClass('Faker\Provider\el_GR\Text');
- }
-
- protected function getMethod($name) {
- $method = $this->textClass->getMethod($name);
-
- $method->setAccessible(true);
-
- return $method;
- }
-
- /** @test */
- function testItShouldAppendEndPunctToTheEndOfString()
- {
- $this->assertSame(
- '최ì„(崔晳)으로부터 ìµœí›„ì˜ íŽ¸ì§€ê°€.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('최ì„(崔晳)으로부터 ìµœí›„ì˜ íŽ¸ì§€ê°€ '))
- );
-
- $this->assertSame(
- '최ì„(崔晳)으로부터 ìµœí›„ì˜ íŽ¸ì§€ê°€.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('최ì„(崔晳)으로부터 ìµœí›„ì˜ íŽ¸ì§€ê°€â€”'))
- );
-
- $this->assertSame(
- '최ì„(崔晳)으로부터 ìµœí›„ì˜ íŽ¸ì§€ê°€.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('최ì„(崔晳)으로부터 ìµœí›„ì˜ íŽ¸ì§€ê°€,'))
- );
-
- $this->assertSame(
- '최ì„(崔晳)으로부터 ìµœí›„ì˜ íŽ¸ì§€ê°€!.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('최ì„(崔晳)으로부터 ìµœí›„ì˜ íŽ¸ì§€ê°€! '))
- );
-
- $this->assertSame(
- '최ì„(崔晳)으로부터 ìµœí›„ì˜ íŽ¸ì§€ê°€.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('최ì„(崔晳)으로부터 ìµœí›„ì˜ íŽ¸ì§€ê°€: '))
- );
-
- $this->assertSame(
- '최ì„(崔晳)으로부터 ìµœí›„ì˜ íŽ¸ì§€ê°€.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('최ì„(崔晳)으로부터 ìµœí›„ì˜ íŽ¸ì§€ê°€; '))
- );
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/mn_MN/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/mn_MN/PersonTest.php
deleted file mode 100644
index 232f8f4b..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/mn_MN/PersonTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-addProvider(new Person($faker));
- $faker->seed(1);
-
- $this->assertRegExp('/^[Ð-Я]{1}\.[\w\W]+$/u', $faker->name);
- }
-
- public function testIdNumber()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $faker->seed(2);
-
- $this->assertRegExp('/^[Ð-Я]{2}\d{8}$/u', $faker->idNumber);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/ms_MY/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/ms_MY/PersonTest.php
deleted file mode 100644
index c35c698d..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/ms_MY/PersonTest.php
+++ /dev/null
@@ -1,50 +0,0 @@
-addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- /**
- * @link https://en.wikipedia.org/wiki/Malaysian_identity_card#Structure_of_the_National_Registration_Identity_Card_Number_(NRIC)
- */
- public function testPersonalIdentityCardNumber()
- {
- $myKadNumber = $this->faker->myKadNumber;
-
- $yy = substr($myKadNumber, 0, 2);
- //match any year from 00-99
- $this->assertRegExp("/^[0-9]{2}$/", $yy);
-
- $mm = substr($myKadNumber, 2, 2);
- //match any month from 01-12
- $this->assertRegExp("/^0[1-9]|1[0-2]$/", $mm);
-
- $dd = substr($myKadNumber, 4, 2);
- //match any date from 01-31
- $this->assertRegExp("/^0[1-9]|1[0-9]|2[0-9]|3[0-1]$/", $dd);
-
- $pb = substr($myKadNumber, 6, 2);
- //match any valid place of birth code from 01-59 except 17-20
- $this->assertRegExp("/^(0[1-9]|1[0-6])|(2[1-9]|3[0-9]|4[0-9]|5[0-9])$/", $pb);
-
- $nnnn = substr($myKadNumber, 8, 4);
- //match any number from 0000-9999
- $this->assertRegExp("/^[0-9]{4}$/", $nnnn);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/nl_BE/PaymentTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/nl_BE/PaymentTest.php
deleted file mode 100644
index e8441033..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/nl_BE/PaymentTest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-addProvider(new Payment($faker));
- $this->faker = $faker;
- }
-
- public function testVatIsValid()
- {
- $vat = $this->faker->vat();
- $unspacedVat = $this->faker->vat(false);
- $this->assertRegExp('/^(BE 0\d{9})$/', $vat);
- $this->assertRegExp('/^(BE0\d{9})$/', $unspacedVat);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/nl_BE/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/nl_BE/PersonTest.php
deleted file mode 100644
index 4885cc3d..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/nl_BE/PersonTest.php
+++ /dev/null
@@ -1,54 +0,0 @@
-addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- public function testRrnIsValid()
- {
- $rrn = $this->faker->rrn();
-
- $this->assertEquals(11, strlen($rrn));
-
- $ctrlNumber = substr($rrn, 9, 2);
- $calcCtrl = 97 - (substr($rrn, 0, 9) % 97);
- $altcalcCtrl = 97 - ((2 . substr($rrn, 0, 9)) % 97);
- $this->assertContains($ctrlNumber, array($calcCtrl, $altcalcCtrl));
-
- $middle = substr($rrn, 6, 3);
- $this->assertGreaterThan(1, $middle);
- $this->assertLessThan(997, $middle);
- }
-
- public function testRrnIsMale()
- {
- $rrn = $this->faker->rrn('male');
- $this->assertEquals(substr($rrn, 6, 3) % 2, 1);
- }
-
- public function testRrnIsFemale()
- {
- $rrn = $this->faker->rrn('female');
- $this->assertEquals(substr($rrn, 6, 3) % 2, 0);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/nl_NL/CompanyTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/nl_NL/CompanyTest.php
deleted file mode 100644
index 6d5484ce..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/nl_NL/CompanyTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- public function testGenerateValidVatNumber()
- {
- $vatNo = $this->faker->vat();
-
- $this->assertEquals(14, strlen($vatNo));
- $this->assertRegExp('/^NL[0-9]{9}B[0-9]{2}$/', $vatNo);
- }
-
- public function testGenerateValidBtwNumberAlias()
- {
- $btwNo = $this->faker->btw();
-
- $this->assertEquals(14, strlen($btwNo));
- $this->assertRegExp('/^NL[0-9]{9}B[0-9]{2}$/', $btwNo);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/nl_NL/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/nl_NL/PersonTest.php
deleted file mode 100644
index c8735f5f..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/nl_NL/PersonTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- public function testGenerateValidIdNumber()
- {
- $idNumber = $this->faker->idNumber();
- $this->assertEquals(9, strlen($idNumber));
-
-
- $sum = -1 * $idNumber % 10;
- for ($multiplier = 2; $idNumber > 0; $multiplier++) {
- $val = ($idNumber /= 10) % 10;
- $sum += $multiplier * $val;
- }
- $this->assertTrue($sum != 0 && $sum % 11 == 0);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/pl_PL/AddressTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/pl_PL/AddressTest.php
deleted file mode 100644
index bbfdf4d3..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/pl_PL/AddressTest.php
+++ /dev/null
@@ -1,32 +0,0 @@
-addProvider(new Address($faker));
- $this->faker = $faker;
- }
-
- /**
- * Test the validity of state
- */
- public function testState()
- {
- $state = $this->faker->state();
- $this->assertNotEmpty($state);
- $this->assertInternalType('string', $state);
- $this->assertRegExp('/[a-z]+/', $state);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/pl_PL/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/pl_PL/PersonTest.php
deleted file mode 100644
index e5e0edc1..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/pl_PL/PersonTest.php
+++ /dev/null
@@ -1,101 +0,0 @@
-addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- public function testPeselLenght()
- {
- $pesel = $this->faker->pesel();
-
- $this->assertEquals(11, strlen($pesel));
- }
-
- public function testPeselDate()
- {
- $date = new DateTime('1990-01-01');
- $pesel = $this->faker->pesel($date);
-
- $this->assertEquals('90', substr($pesel, 0, 2));
- $this->assertEquals('01', substr($pesel, 2, 2));
- $this->assertEquals('01', substr($pesel, 4, 2));
- }
-
- public function testPeselDateWithYearAfter2000()
- {
- $date = new DateTime('2001-01-01');
- $pesel = $this->faker->pesel($date);
-
- $this->assertEquals('01', substr($pesel, 0, 2));
- $this->assertEquals('21', substr($pesel, 2, 2));
- $this->assertEquals('01', substr($pesel, 4, 2));
- }
-
- public function testPeselDateWithYearAfter2100()
- {
- $date = new DateTime('2101-01-01');
- $pesel = $this->faker->pesel($date);
-
- $this->assertEquals('01', substr($pesel, 0, 2));
- $this->assertEquals('41', substr($pesel, 2, 2));
- $this->assertEquals('01', substr($pesel, 4, 2));
- }
-
- public function testPeselDateWithYearAfter2200()
- {
- $date = new DateTime('2201-01-01');
- $pesel = $this->faker->pesel($date);
-
- $this->assertEquals('01', substr($pesel, 0, 2));
- $this->assertEquals('61', substr($pesel, 2, 2));
- $this->assertEquals('01', substr($pesel, 4, 2));
- }
-
- public function testPeselDateWithYearBefore1900()
- {
- $date = new DateTime('1801-01-01');
- $pesel = $this->faker->pesel($date);
-
- $this->assertEquals('01', substr($pesel, 0, 2));
- $this->assertEquals('81', substr($pesel, 2, 2));
- $this->assertEquals('01', substr($pesel, 4, 2));
- }
-
- public function testPeselSex()
- {
- $male = $this->faker->pesel(null, 'M');
- $female = $this->faker->pesel(null, 'F');
-
- $this->assertEquals(1, $male[9] % 2);
- $this->assertEquals(0, $female[9] % 2);
- }
-
- public function testPeselCheckSum()
- {
- $pesel = $this->faker->pesel();
- $weights = array(1, 3, 7, 9, 1, 3, 7, 9, 1, 3, 1);
- $sum = 0;
-
- foreach ($weights as $key => $weight) {
- $sum += $pesel[$key] * $weight;
- }
-
- $this->assertEquals(0, $sum % 10);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/pt_BR/CompanyTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/pt_BR/CompanyTest.php
deleted file mode 100644
index b0feecac..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/pt_BR/CompanyTest.php
+++ /dev/null
@@ -1,26 +0,0 @@
-addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- public function testCnpjFormatIsValid()
- {
- $cnpj = $this->faker->cnpj(false);
- $this->assertRegExp('/\d{8}\d{4}\d{2}/', $cnpj);
- $cnpj = $this->faker->cnpj(true);
- $this->assertRegExp('/\d{2}\.\d{3}\.\d{3}\/\d{4}-\d{2}/', $cnpj);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/pt_BR/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/pt_BR/PersonTest.php
deleted file mode 100644
index 0b8318dd..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/pt_BR/PersonTest.php
+++ /dev/null
@@ -1,34 +0,0 @@
-addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- public function testCpfFormatIsValid()
- {
- $cpf = $this->faker->cpf(false);
- $this->assertRegExp('/\d{9}\d{2}/', $cpf);
- $cpf = $this->faker->cpf(true);
- $this->assertRegExp('/\d{3}\.\d{3}\.\d{3}-\d{2}/', $cpf);
- }
-
- public function testRgFormatIsValid()
- {
- $rg = $this->faker->rg(false);
- $this->assertRegExp('/\d{8}\d/', $rg);
- $rg = $this->faker->rg(true);
- $this->assertRegExp('/\d{2}\.\d{3}\.\d{3}-[0-9X]/', $rg);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/pt_PT/AddressTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/pt_PT/AddressTest.php
deleted file mode 100644
index 3783fd52..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/pt_PT/AddressTest.php
+++ /dev/null
@@ -1,40 +0,0 @@
-addProvider(new Address($faker));
- $this->faker = $faker;
- }
-
- public function testPostCodeIsValid()
- {
- $main = '[1-9]{1}[0-9]{2}[0,1,4,5,9]{1}';
- $pattern = "/^($main)|($main-[0-9]{3})+$/";
- $postcode = $this->faker->postcode();
- $this->assertSame(preg_match($pattern, $postcode), 1, $postcode);
- }
-
- public function testAddressIsSingleLine()
- {
- $this->faker->addProvider(new Person($this->faker));
-
- $address = $this->faker->address();
- $this->assertFalse(strstr($address, "\n"));
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/pt_PT/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/pt_PT/PersonTest.php
deleted file mode 100644
index 662f12a7..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/pt_PT/PersonTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- public function testTaxpayerIdentificationNumberIsValid()
- {
- $tin = $this->faker->taxpayerIdentificationNumber();
- $this->assertTrue($this->isValidTin($tin), $tin);
- }
-
- /**
- *
- * @link http://pt.wikipedia.org/wiki/N%C3%BAmero_de_identifica%C3%A7%C3%A3o_fiscal
- *
- * @param type $tin
- *
- * @return boolean
- */
- public static function isValidTin($tin)
- {
- $regex = '(([1,2,3,5,6,8]{1}[0-9]{8})|((45)|(70)|(71)|(72)|(77)|(79)|(90|(98|(99))))[0-9]{7})';
- if (is_null($tin) || !is_numeric($tin) || !strlen($tin) == 9 || preg_match("/$regex/", $tin) !== 1) {
- return false;
- }
- $n = str_split($tin);
- // cd - Control Digit
- $cd = ($n[0] * 9 + $n[1] * 8 + $n[2] * 7 + $n[3] * 6 + $n[4] * 5 + $n[5] * 4 + $n[6] * 3 + $n[7] * 2) % 11;
- if ($cd === 0 || $cd === 1) {
- $cd = 0;
- } else {
- $cd = 11 - $cd;
- }
- if ($cd === intval($n[8])) {
- return true;
- }
-
- return false;
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/pt_PT/PhoneNumberTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/pt_PT/PhoneNumberTest.php
deleted file mode 100644
index fd5d3194..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/pt_PT/PhoneNumberTest.php
+++ /dev/null
@@ -1,26 +0,0 @@
-addProvider(new PhoneNumber($faker));
- $this->faker = $faker;
- }
-
- public function testPhoneNumberReturnsPhoneNumberWithOrWithoutPrefix()
- {
- $this->assertRegExp('/^(9[1,2,3,6][0-9]{7})|(2[0-9]{8})|(\+351 [2][0-9]{8})|(\+351 9[1,2,3,6][0-9]{7})/', $this->faker->phoneNumber());
- }
- public function testMobileNumberReturnsMobileNumberWithOrWithoutPrefix()
- {
- $this->assertRegExp('/^(9[1,2,3,6][0-9]{7})/', $this->faker->mobileNumber());
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/ro_RO/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/ro_RO/PersonTest.php
deleted file mode 100644
index 2c7fadce..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/ro_RO/PersonTest.php
+++ /dev/null
@@ -1,252 +0,0 @@
-addProvider(new DateTime($faker));
- $faker->addProvider(new Person($faker));
- $faker->setDefaultTimezone('Europe/Bucharest');
- $this->faker = $faker;
- }
-
- public function tearDown()
- {
- $this->faker->setDefaultTimezone();
- }
-
- public function invalidGenderProvider()
- {
- return array(
- array('elf'),
- array('ent'),
- array('fmle'),
- array('mal'),
- );
- }
-
- public function invalidYearProvider()
- {
- return array(
- array(1652),
- array(1799),
- array(2100),
- array(2252),
- );
- }
-
- public function validYearProvider()
- {
- return array(
- array(null),
- array(''),
- array(1800),
- array(1850),
- array(1900),
- array(1990),
- array(2000),
- array(2099),
- );
- }
-
- public function validCountyCodeProvider()
- {
- return array(
- array('AB'), array('AR'), array('AG'), array('B'), array('BC'), array('BH'), array('BN'), array('BT'),
- array('BV'), array('BR'), array('BZ'), array('CS'), array('CL'), array('CJ'), array('CT'), array('CV'),
- array('DB'), array('DJ'), array('GL'), array('GR'), array('GJ'), array('HR'), array('HD'), array('IL'),
- array('IS'), array('IF'), array('MM'), array('MH'), array('MS'), array('NT'), array('OT'), array('PH'),
- array('SM'), array('SJ'), array('SB'), array('SV'), array('TR'), array('TM'), array('TL'), array('VS'),
- array('VL'), array('VN'), array('B1'), array('B2'), array('B3'), array('B4'), array('B5'), array('B6')
- );
- }
-
- public function invalidCountyCodeProvider()
- {
- return array(
- array('JK'), array('REW'), array('x'), array('FF'), array('aaaddadaada')
- );
- }
-
- public function validInputDataProvider()
- {
- return array(
- array(Person::GENDER_MALE, '1981-06-16','B2', true, '181061642'),
- array(Person::GENDER_FEMALE, '1981-06-16','B2', true, '281061642'),
- array(Person::GENDER_MALE, '1981-06-16','B2', false, '981061642'),
- array(Person::GENDER_FEMALE, '1981-06-16','B2', false, '981061642'),
- );
- }
- /**
- *
- */
- public function test_allRandom_returnsValidCnp()
- {
- $cnp = $this->faker->cnp;
- $this->assertTrue(
- $this->isValidCnp($cnp),
- sprintf("Invalid CNP '%' generated", $cnp)
- );
- }
-
- /**
- *
- */
- public function test_validGender_returnsValidCnp()
- {
- $cnp = $this->faker->cnp(Person::GENDER_MALE);
- $this->assertTrue(
- $this->isValidMaleCnp($cnp),
- sprintf("Invalid CNP '%' generated for '%s' gender", $cnp, Person::GENDER_MALE)
- );
-
- $cnp = $this->faker->cnp(Person::GENDER_FEMALE);
- $this->assertTrue(
- $this->isValidFemaleCnp($cnp),
- sprintf("Invalid CNP '%' generated for '%s' gender", $cnp, Person::GENDER_FEMALE)
- );
- }
-
- /**
- * @param string $value
- *
- * @dataProvider invalidGenderProvider
- */
- public function test_invalidGender_throwsException($value)
- {
- $this->setExpectedException('InvalidArgumentException');
- $this->faker->cnp($value);
- }
-
- /**
- * @param string $value year of birth
- *
- * @dataProvider validYearProvider
- */
- public function test_validYear_returnsValidCnp($value)
- {
- $cnp = $this->faker->cnp(null, $value);
- $this->assertTrue(
- $this->isValidCnp($cnp),
- sprintf("Invalid CNP '%' generated for valid year '%s'", $cnp, $value)
- );
- }
-
- /**
- * @param string $value year of birth
- *
- * @dataProvider invalidYearProvider
- */
- public function test_invalidYear_throwsException($value)
- {
- $this->setExpectedException('InvalidArgumentException');
- $this->faker->cnp(null, $value);
- }
-
- /**
- * @param $value
- * @dataProvider validCountyCodeProvider
- */
- public function test_validCountyCode_returnsValidCnp($value)
- {
- $cnp = $this->faker->cnp(null, null, $value);
- $this->assertTrue(
- $this->isValidCnp($cnp),
- sprintf("Invalid CNP '%' generated for valid year '%s'", $cnp, $value)
- );
- }
-
- /**
- * @param $value
- * @dataProvider invalidCountyCodeProvider
- */
- public function test_invalidCountyCode_throwsException($value)
- {
- $this->setExpectedException('InvalidArgumentException');
- $this->faker->cnp(null, null, $value);
- }
-
- /**
- *
- */
- public function test_nonResident_returnsValidCnp()
- {
- $cnp = $this->faker->cnp(null, null, null, false);
- $this->assertTrue(
- $this->isValidCnp($cnp),
- sprintf("Invalid CNP '%' generated for non resident", $cnp)
- );
- $this->assertStringStartsWith(
- '9',
- $cnp,
- sprintf("Invalid CNP '%' generated for non resident (should start with 9)", $cnp)
- );
- }
-
- /**
- *
- * @param $gender
- * @param $dateOfBirth
- * @param $county
- * @param $isResident
- * @param $expectedCnpStart
- *
- * @dataProvider validInputDataProvider
- */
- public function test_validInputData_returnsValidCnp($gender, $dateOfBirth, $county, $isResident, $expectedCnpStart)
- {
- $cnp = $this->faker->cnp($gender, $dateOfBirth, $county, $isResident);
- $this->assertStringStartsWith(
- $expectedCnpStart,
- $cnp,
- sprintf("Invalid CNP '%' generated for non valid data", $cnp)
- );
- }
-
-
- protected function isValidFemaleCnp($value)
- {
- return $this->isValidCnp($value) && in_array($value[0], array(2, 4, 6, 8, 9));
- }
-
- protected function isValidMaleCnp($value)
- {
- return $this->isValidCnp($value) && in_array($value[0], array(1, 3, 5, 7, 9));
- }
-
- protected function isValidCnp($cnp)
- {
- if (preg_match(static::TEST_CNP_REGEX, $cnp) !== false) {
- $checkNumber = 279146358279;
-
- $checksum = 0;
- foreach (range(0, 11) as $digit) {
- $checksum += (int)substr($cnp, $digit, 1) * (int)substr($checkNumber, $digit, 1);
- }
- $checksum = $checksum % 11;
- $checksum = $checksum == 10 ? 1 : $checksum;
-
- if ($checksum == substr($cnp, -1)) {
- return true;
- }
- }
-
- return false;
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/ro_RO/PhoneNumberTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/ro_RO/PhoneNumberTest.php
deleted file mode 100644
index b7965cd8..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/ro_RO/PhoneNumberTest.php
+++ /dev/null
@@ -1,32 +0,0 @@
-addProvider(new PhoneNumber($faker));
- $this->faker = $faker;
- }
-
- public function testPhoneNumberReturnsNormalPhoneNumber()
- {
- $this->assertRegExp('/^0(?:[23][13-7]|7\d)\d{7}$/', $this->faker->phoneNumber());
- }
-
- public function testTollFreePhoneNumberReturnsTollFreePhoneNumber()
- {
- $this->assertRegExp('/^08(?:0[01267]|70)\d{6}$/', $this->faker->tollFreePhoneNumber());
- }
-
- public function testPremiumRatePhoneNumberReturnsPremiumRatePhoneNumber()
- {
- $this->assertRegExp('/^090[036]\d{6}$/', $this->faker->premiumRatePhoneNumber());
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/ru_RU/CompanyTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/ru_RU/CompanyTest.php
deleted file mode 100644
index 8fbcf265..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/ru_RU/CompanyTest.php
+++ /dev/null
@@ -1,37 +0,0 @@
-addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- public function testINN()
- {
- $this->assertRegExp('/^[0-9]{10}$/', $this->faker->inn);
- $this->assertEquals("77", substr($this->faker->inn("77"), 0, 2));
- $this->assertEquals("02", substr($this->faker->inn(2), 0, 2));
- }
-
- public function testKPP()
- {
- $this->assertRegExp('/^[0-9]{9}$/', $this->faker->kpp);
- $this->assertEquals("01001", substr($this->faker->kpp, -5, 5));
- $inn = $this->faker->inn;
- $this->assertEquals(substr($inn, 0, 4), substr($this->faker->kpp($inn), 0, 4));
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/ru_RU/TextTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/ru_RU/TextTest.php
deleted file mode 100644
index bbb0eae6..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/ru_RU/TextTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-textClass = new \ReflectionClass('Faker\Provider\ru_RU\Text');
- }
-
- protected function getMethod($name) {
- $method = $this->textClass->getMethod($name);
-
- $method->setAccessible(true);
-
- return $method;
- }
-
- /** @test */
- function testItShouldAppendEndPunctToTheEndOfString()
- {
- $this->assertSame(
- 'Ðа другой день Чичиков отправилÑÑ Ð½Ð° обед и вечер.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('Ðа другой день Чичиков отправилÑÑ Ð½Ð° обед и вечер '))
- );
-
- $this->assertSame(
- 'Ðа другой день Чичиков отправилÑÑ Ð½Ð° обед и вечер.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('Ðа другой день Чичиков отправилÑÑ Ð½Ð° обед и вечер—'))
- );
-
- $this->assertSame(
- 'Ðа другой день Чичиков отправилÑÑ Ð½Ð° обед и вечер.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('Ðа другой день Чичиков отправилÑÑ Ð½Ð° обед и вечер,'))
- );
-
- $this->assertSame(
- 'Ðа другой день Чичиков отправилÑÑ Ð½Ð° обед и вечер!.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('Ðа другой день Чичиков отправилÑÑ Ð½Ð° обед и вечер! '))
- );
-
- $this->assertSame(
- 'Ðа другой день Чичиков отправилÑÑ Ð½Ð° обед и вечер.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('Ðа другой день Чичиков отправилÑÑ Ð½Ð° обед и вечер; '))
- );
-
- $this->assertSame(
- 'Ðа другой день Чичиков отправилÑÑ Ð½Ð° обед и вечер.',
- $this->getMethod('appendEnd')->invokeArgs(null, array('Ðа другой день Чичиков отправилÑÑ Ð½Ð° обед и вечер: '))
- );
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/sv_SE/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/sv_SE/PersonTest.php
deleted file mode 100644
index 584998da..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/sv_SE/PersonTest.php
+++ /dev/null
@@ -1,61 +0,0 @@
-addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- public function provideSeedAndExpectedReturn()
- {
- return array(
- array(1, '720727', '720727-5798'),
- array(2, '710414', '710414-5664'),
- array(3, '591012', '591012-4519'),
- array(4, '180307', '180307-0356'),
- array(5, '820904', '820904-7748')
- );
- }
-
- /**
- * @dataProvider provideSeedAndExpectedReturn
- */
- public function testPersonalIdentityNumberUsesBirthDateIfProvided($seed, $birthdate, $expected)
- {
- $faker = $this->faker;
- $faker->seed($seed);
- $pin = $faker->personalIdentityNumber(\DateTime::createFromFormat('ymd', $birthdate));
- $this->assertEquals($expected, $pin);
- }
-
- public function testPersonalIdentityNumberGeneratesLuhnCompliantNumbers()
- {
- $pin = str_replace('-', '', $this->faker->personalIdentityNumber());
- $this->assertTrue(Luhn::isValid($pin));
- }
-
- public function testPersonalIdentityNumberGeneratesOddValuesForMales()
- {
- $pin = $this->faker->personalIdentityNumber(null, 'male');
- $this->assertEquals(1, $pin{9} % 2);
- }
-
- public function testPersonalIdentityNumberGeneratesEvenValuesForFemales()
- {
- $pin = $this->faker->personalIdentityNumber(null, 'female');
- $this->assertEquals(0, $pin{9} % 2);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/tr_TR/CompanyTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/tr_TR/CompanyTest.php
deleted file mode 100644
index badf905f..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/tr_TR/CompanyTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- public function testCompany()
- {
- $company = $this->faker->companyField;
- $this->assertNotNull($company);
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/tr_TR/PaymentTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/tr_TR/PaymentTest.php
deleted file mode 100644
index 7c8ffdb2..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/tr_TR/PaymentTest.php
+++ /dev/null
@@ -1,29 +0,0 @@
-addProvider(new Payment($faker));
- $this->faker = $faker;
- }
-
- public function testBankAccountNumber()
- {
- $accNo = $this->faker->bankAccountNumber;
- $this->assertEquals(substr($accNo, 0, 2), 'TR');
- $this->assertEquals(26, strlen($accNo));
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/tr_TR/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/tr_TR/PersonTest.php
deleted file mode 100644
index ad9db9c7..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/tr_TR/PersonTest.php
+++ /dev/null
@@ -1,34 +0,0 @@
-addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- public function testTCNo()
- {
- for ($i = 0; $i < 100; $i++) {
- $number = $this->faker->tcNo;
-
- $this->assertEquals(11, strlen($number));
- $this->assertTrue(TCNo::isValid($number));
- }
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/tr_TR/PhoneNumberTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/tr_TR/PhoneNumberTest.php
deleted file mode 100644
index 0971d04b..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/tr_TR/PhoneNumberTest.php
+++ /dev/null
@@ -1,34 +0,0 @@
-addProvider(new PhoneNumber($faker));
- $this->faker = $faker;
- }
-
- public function testPhoneNumber()
- {
- for ($i = 0; $i < 100; $i++) {
- $number = $this->faker->phoneNumber;
- $baseNumber = preg_replace('/ *x.*$/', '', $number); // Remove possible extension
- $digits = array_values(array_filter(str_split($baseNumber), 'ctype_digit'));
-
- $this->assertGreaterThan(10, count($digits));
- }
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/uk_UA/AddressTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/uk_UA/AddressTest.php
deleted file mode 100644
index 4c4a0612..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/uk_UA/AddressTest.php
+++ /dev/null
@@ -1,81 +0,0 @@
-addProvider(new Address($faker));
- $this->faker = $faker;
- }
-
- public function testPostCodeIsValid()
- {
- $main = '[0-9]{5}';
- $pattern = "/^($main)|($main-[0-9]{3})+$/";
- $postcode = $this->faker->postcode;
- $this->assertRegExp($pattern, $postcode, 'Post code ' . $postcode . ' is wrong!');
- }
-
- public function testEmptySuffixes()
- {
- $this->assertEmpty($this->faker->citySuffix, 'City suffix should be empty!');
- $this->assertEmpty($this->faker->streetSuffix, 'Street suffix should be empty!');
- }
-
- public function testStreetCyrOnly()
- {
- $pattern = "/[0-9Ð-ЩЯІЇЄЮа-щÑіїєюьIVXCM][0-9Ð-ЩЯІЇЄЮа-щÑіїєюь \'-.]*[Ð-Яа-Ñ.]/u";
- $streetName = $this->faker->streetName;
- $this->assertSame(
- preg_match($pattern, $streetName),
- 1,
- 'Street name ' . $streetName . ' is wrong!'
- );
- }
-
- public function testCityNameCyrOnly()
- {
- $pattern = "/[Ð-ЩЯІЇЄЮа-щÑіїєюь][0-9Ð-ЩЯІЇЄЮа-щÑіїєюь \'-]*[Ð-Яа-Ñ]/u";
- $city = $this->faker->city;
- $this->assertSame(
- preg_match($pattern, $city),
- 1,
- 'City name ' . $city . ' is wrong!'
- );
- }
-
- public function testRegionNameCyrOnly()
- {
- $pattern = "/[Ð-ЩЯІЇЄЮ][Ð-ЩЯІЇЄЮа-щÑіїєюь]*а$/u";
- $regionName = $this->faker->region;
- $this->assertSame(
- preg_match($pattern, $regionName),
- 1,
- 'Region name ' . $regionName . ' is wrong!'
- );
- }
-
- public function testCountryCyrOnly()
- {
- $pattern = "/[Ð-ЩЯІЇЄЮа-щÑіїєюьIVXCM][Ð-ЩЯІЇЄЮа-щÑіїєюь \'-]*[Ð-Яа-Ñ.]/u";
- $country = $this->faker->country;
- $this->assertSame(
- preg_match($pattern, $country),
- 1,
- 'Country name ' . $country . ' is wrong!'
- );
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/uk_UA/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/uk_UA/PersonTest.php
deleted file mode 100644
index a8d70f69..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/uk_UA/PersonTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-addProvider(new Person($faker));
- $faker->seed(1);
-
- $this->assertEquals('МакÑим', $faker->firstNameMale());
- }
-
- public function testFirstNameFemaleReturns()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $faker->seed(1);
-
- $this->assertEquals('Людмила', $faker->firstNameFemale());
- }
-
- public function testMiddleNameMaleReturns()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $faker->seed(1);
-
- $this->assertEquals('Миколайович', $faker->middleNameMale());
- }
-
- public function testMiddleNameFemaleReturns()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $faker->seed(1);
-
- $this->assertEquals('Миколаївна', $faker->middleNameFemale());
- }
-
- public function testLastNameReturns()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $faker->seed(1);
-
- $this->assertEquals('Броваренко', $faker->lastName());
- }
-
-
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/uk_UA/PhoneNumberTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/uk_UA/PhoneNumberTest.php
deleted file mode 100644
index f7f9f14b..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/uk_UA/PhoneNumberTest.php
+++ /dev/null
@@ -1,36 +0,0 @@
-addProvider(new PhoneNumber($faker));
- $this->faker = $faker;
- }
-
- public function testPhoneNumberFormat()
- {
- $pattern = "/((\+38)(((\(\d{3}\))\d{7}|(\(\d{4}\))\d{6})|(\d{8})))|0\d{9}/";
- $phoneNumber = $this->faker->phoneNumber;
- $this->assertSame(
- preg_match($pattern, $phoneNumber),
- 1,
- 'Phone number format ' . $phoneNumber . ' is wrong!'
- );
-
- }
-
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/zh_TW/CompanyTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/zh_TW/CompanyTest.php
deleted file mode 100644
index f2134b9b..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/zh_TW/CompanyTest.php
+++ /dev/null
@@ -1,27 +0,0 @@
-addProvider(new Company($faker));
- $this->faker = $faker;
- }
-
- public function testVAT()
- {
- $this->assertEquals(8, floor(log10($this->faker->VAT) + 1));
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/zh_TW/PersonTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/zh_TW/PersonTest.php
deleted file mode 100644
index 167d0fa0..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/zh_TW/PersonTest.php
+++ /dev/null
@@ -1,45 +0,0 @@
-addProvider(new Person($faker));
- $this->faker = $faker;
- }
-
- /**
- * @see https://zh.wikipedia.org/wiki/%E4%B8%AD%E8%8F%AF%E6%B0%91%E5%9C%8B%E5%9C%8B%E6%B0%91%E8%BA%AB%E5%88%86%E8%AD%89
- */
- public function testPersonalIdentityNumber()
- {
- $id = $this->faker->personalIdentityNumber;
-
- $firstChar = substr($id, 0, 1);
- $codesString = Person::$idBirthplaceCode[$firstChar] . substr($id, 1);
-
- // After transfer the first alphabet word into 2 digit number, there should be totally 11 numbers
- $this->assertRegExp("/^[0-9]{11}$/", $codesString);
-
- $total = 0;
- $codesArray = str_split($codesString);
- foreach ($codesArray as $key => $code) {
- $total += $code * Person::$idDigitValidator[$key];
- }
-
- // Validate
- $this->assertEquals(0, ($total % 10));
- }
-}
diff --git a/vendor/fzaninotto/faker/test/Faker/Provider/zh_TW/TextTest.php b/vendor/fzaninotto/faker/test/Faker/Provider/zh_TW/TextTest.php
deleted file mode 100644
index ab56f83c..00000000
--- a/vendor/fzaninotto/faker/test/Faker/Provider/zh_TW/TextTest.php
+++ /dev/null
@@ -1,79 +0,0 @@
-textClass = new \ReflectionClass('Faker\Provider\zh_TW\Text');
- }
-
- protected function getMethod($name) {
- $method = $this->textClass->getMethod($name);
-
- $method->setAccessible(true);
-
- return $method;
- }
-
- /** @test */
- function testItShouldExplodeTheStringToArray()
- {
- $this->assertSame(
- array('ä¸', 'æ–‡', '測', '試', '真', '有', '趣'),
- $this->getMethod('explode')->invokeArgs(null, array('ä¸æ–‡æ¸¬è©¦çœŸæœ‰è¶£'))
- );
-
- $this->assertSame(
- array('標', '點', ',', '符', '號', 'ï¼'),
- $this->getMethod('explode')->invokeArgs(null, array('標點,符號ï¼'))
- );
- }
-
- /** @test */
- function testItShouldReturnTheStringLength()
- {
- $this->assertContains(
- $this->getMethod('strlen')->invokeArgs(null, array('ä¸æ–‡æ¸¬è©¦çœŸæœ‰è¶£')),
- array(7, 21)
- );
- }
-
- /** @test */
- function testItShouldReturnTheCharacterIsValidStartOrNot()
- {
- $this->assertTrue($this->getMethod('validStart')->invokeArgs(null, array('ä¸')));
-
- $this->assertTrue($this->getMethod('validStart')->invokeArgs(null, array('2')));
-
- $this->assertTrue($this->getMethod('validStart')->invokeArgs(null, array('Hello')));
-
- $this->assertFalse($this->getMethod('validStart')->invokeArgs(null, array('。')));
-
- $this->assertFalse($this->getMethod('validStart')->invokeArgs(null, array('ï¼')));
- }
-
- /** @test */
- function testItShouldAppendEndPunctToTheEndOfString()
- {
- $this->assertSame(
- 'ä¸æ–‡æ¸¬è©¦çœŸæœ‰è¶£ã€‚',
- $this->getMethod('appendEnd')->invokeArgs(null, array('ä¸æ–‡æ¸¬è©¦çœŸæœ‰è¶£'))
- );
-
- $this->assertSame(
- 'ä¸æ–‡æ¸¬è©¦çœŸæœ‰è¶£ã€‚',
- $this->getMethod('appendEnd')->invokeArgs(null, array('ä¸æ–‡æ¸¬è©¦çœŸæœ‰è¶£ï¼Œ'))
- );
-
- $this->assertSame(
- 'ä¸æ–‡æ¸¬è©¦çœŸæœ‰è¶£ï¼',
- $this->getMethod('appendEnd')->invokeArgs(null, array('ä¸æ–‡æ¸¬è©¦çœŸæœ‰è¶£ï¼'))
- );
- }
-}
diff --git a/vendor/fzaninotto/faker/test/documentor.php b/vendor/fzaninotto/faker/test/documentor.php
deleted file mode 100644
index 1051ea28..00000000
--- a/vendor/fzaninotto/faker/test/documentor.php
+++ /dev/null
@@ -1,16 +0,0 @@
-seed(1);
-$documentor = new Faker\Documentor($generator);
-?>
-getFormatters() as $provider => $formatters): ?>
-
-### ``
-
- $example): ?>
- //
-
-
-seed(5);
-
-echo '';
-?>
-
@@ -251,7 +272,8 @@ if (!function_exists('both')) { /**
}
}
-if (!function_exists('either')) { /**
+if (!function_exists('either')) {
+ /**
* This is useful for fluently combining matchers where either may pass,
* for example:
*
@@ -264,7 +286,8 @@ if (!function_exists('either')) { /**
}
}
-if (!function_exists('describedAs')) { /**
+if (!function_exists('describedAs')) {
+ /**
* Wraps an existing matcher and overrides the description when it fails.
*/
function describedAs(/* args... */)
@@ -274,7 +297,8 @@ if (!function_exists('describedAs')) { /**
}
}
-if (!function_exists('everyItem')) { /**
+if (!function_exists('everyItem')) {
+ /**
* @param Matcher $itemMatcher
* A matcher to apply to every element in an array.
*
@@ -287,7 +311,8 @@ if (!function_exists('everyItem')) { /**
}
}
-if (!function_exists('hasToString')) { /**
+if (!function_exists('hasToString')) {
+ /**
* Does array size satisfy a given matcher?
*/
function hasToString($matcher)
@@ -296,7 +321,8 @@ if (!function_exists('hasToString')) { /**
}
}
-if (!function_exists('is')) { /**
+if (!function_exists('is')) {
+ /**
* Decorates another Matcher, retaining the behavior but allowing tests
* to be slightly more expressive.
*
@@ -309,7 +335,8 @@ if (!function_exists('is')) { /**
}
}
-if (!function_exists('anything')) { /**
+if (!function_exists('anything')) {
+ /**
* This matcher always evaluates to true.
*
* @param string $description A meaningful string used when describing itself.
@@ -322,7 +349,8 @@ if (!function_exists('anything')) { /**
}
}
-if (!function_exists('hasItem')) { /**
+if (!function_exists('hasItem')) {
+ /**
* Test if the value is an array containing this matcher.
*
* Example:
@@ -339,7 +367,8 @@ if (!function_exists('hasItem')) { /**
}
}
-if (!function_exists('hasItems')) { /**
+if (!function_exists('hasItems')) {
+ /**
* Test if the value is an array containing elements that match all of these
* matchers.
*
@@ -355,7 +384,8 @@ if (!function_exists('hasItems')) { /**
}
}
-if (!function_exists('equalTo')) { /**
+if (!function_exists('equalTo')) {
+ /**
* Is the value equal to another value, as tested by the use of the "=="
* comparison operator?
*/
@@ -365,7 +395,8 @@ if (!function_exists('equalTo')) { /**
}
}
-if (!function_exists('identicalTo')) { /**
+if (!function_exists('identicalTo')) {
+ /**
* Tests of the value is identical to $value as tested by the "===" operator.
*/
function identicalTo($value)
@@ -374,7 +405,8 @@ if (!function_exists('identicalTo')) { /**
}
}
-if (!function_exists('anInstanceOf')) { /**
+if (!function_exists('anInstanceOf')) {
+ /**
* Is the value an instance of a particular type?
* This version assumes no relationship between the required type and
* the signature of the method that sets it up, for example in
@@ -386,7 +418,8 @@ if (!function_exists('anInstanceOf')) { /**
}
}
-if (!function_exists('any')) { /**
+if (!function_exists('any')) {
+ /**
* Is the value an instance of a particular type?
* This version assumes no relationship between the required type and
* the signature of the method that sets it up, for example in
@@ -398,7 +431,8 @@ if (!function_exists('any')) { /**
}
}
-if (!function_exists('not')) { /**
+if (!function_exists('not')) {
+ /**
* Matches if value does not match $value.
*/
function not($value)
@@ -407,7 +441,8 @@ if (!function_exists('not')) { /**
}
}
-if (!function_exists('nullValue')) { /**
+if (!function_exists('nullValue')) {
+ /**
* Matches if value is null.
*/
function nullValue()
@@ -416,7 +451,8 @@ if (!function_exists('nullValue')) { /**
}
}
-if (!function_exists('notNullValue')) { /**
+if (!function_exists('notNullValue')) {
+ /**
* Matches if value is not null.
*/
function notNullValue()
@@ -425,7 +461,8 @@ if (!function_exists('notNullValue')) { /**
}
}
-if (!function_exists('sameInstance')) { /**
+if (!function_exists('sameInstance')) {
+ /**
* Creates a new instance of IsSame.
*
* @param mixed $object
@@ -440,7 +477,8 @@ if (!function_exists('sameInstance')) { /**
}
}
-if (!function_exists('typeOf')) { /**
+if (!function_exists('typeOf')) {
+ /**
* Is the value a particular built-in type?
*/
function typeOf($theType)
@@ -449,7 +487,8 @@ if (!function_exists('typeOf')) { /**
}
}
-if (!function_exists('set')) { /**
+if (!function_exists('set')) {
+ /**
* Matches if value (class, object, or array) has named $property.
*/
function set($property)
@@ -458,7 +497,8 @@ if (!function_exists('set')) { /**
}
}
-if (!function_exists('notSet')) { /**
+if (!function_exists('notSet')) {
+ /**
* Matches if value (class, object, or array) does not have named $property.
*/
function notSet($property)
@@ -467,7 +507,8 @@ if (!function_exists('notSet')) { /**
}
}
-if (!function_exists('closeTo')) { /**
+if (!function_exists('closeTo')) {
+ /**
* Matches if value is a number equal to $value within some range of
* acceptable error $delta.
*/
@@ -477,7 +518,8 @@ if (!function_exists('closeTo')) { /**
}
}
-if (!function_exists('comparesEqualTo')) { /**
+if (!function_exists('comparesEqualTo')) {
+ /**
* The value is not > $value, nor < $value.
*/
function comparesEqualTo($value)
@@ -486,7 +528,8 @@ if (!function_exists('comparesEqualTo')) { /**
}
}
-if (!function_exists('greaterThan')) { /**
+if (!function_exists('greaterThan')) {
+ /**
* The value is > $value.
*/
function greaterThan($value)
@@ -495,7 +538,8 @@ if (!function_exists('greaterThan')) { /**
}
}
-if (!function_exists('greaterThanOrEqualTo')) { /**
+if (!function_exists('greaterThanOrEqualTo')) {
+ /**
* The value is >= $value.
*/
function greaterThanOrEqualTo($value)
@@ -504,7 +548,8 @@ if (!function_exists('greaterThanOrEqualTo')) { /**
}
}
-if (!function_exists('atLeast')) { /**
+if (!function_exists('atLeast')) {
+ /**
* The value is >= $value.
*/
function atLeast($value)
@@ -513,7 +558,8 @@ if (!function_exists('atLeast')) { /**
}
}
-if (!function_exists('lessThan')) { /**
+if (!function_exists('lessThan')) {
+ /**
* The value is < $value.
*/
function lessThan($value)
@@ -522,7 +568,8 @@ if (!function_exists('lessThan')) { /**
}
}
-if (!function_exists('lessThanOrEqualTo')) { /**
+if (!function_exists('lessThanOrEqualTo')) {
+ /**
* The value is <= $value.
*/
function lessThanOrEqualTo($value)
@@ -531,7 +578,8 @@ if (!function_exists('lessThanOrEqualTo')) { /**
}
}
-if (!function_exists('atMost')) { /**
+if (!function_exists('atMost')) {
+ /**
* The value is <= $value.
*/
function atMost($value)
@@ -540,7 +588,8 @@ if (!function_exists('atMost')) { /**
}
}
-if (!function_exists('isEmptyString')) { /**
+if (!function_exists('isEmptyString')) {
+ /**
* Matches if value is a zero-length string.
*/
function isEmptyString()
@@ -549,7 +598,8 @@ if (!function_exists('isEmptyString')) { /**
}
}
-if (!function_exists('emptyString')) { /**
+if (!function_exists('emptyString')) {
+ /**
* Matches if value is a zero-length string.
*/
function emptyString()
@@ -558,7 +608,8 @@ if (!function_exists('emptyString')) { /**
}
}
-if (!function_exists('isEmptyOrNullString')) { /**
+if (!function_exists('isEmptyOrNullString')) {
+ /**
* Matches if value is null or a zero-length string.
*/
function isEmptyOrNullString()
@@ -567,7 +618,8 @@ if (!function_exists('isEmptyOrNullString')) { /**
}
}
-if (!function_exists('nullOrEmptyString')) { /**
+if (!function_exists('nullOrEmptyString')) {
+ /**
* Matches if value is null or a zero-length string.
*/
function nullOrEmptyString()
@@ -576,7 +628,8 @@ if (!function_exists('nullOrEmptyString')) { /**
}
}
-if (!function_exists('isNonEmptyString')) { /**
+if (!function_exists('isNonEmptyString')) {
+ /**
* Matches if value is a non-zero-length string.
*/
function isNonEmptyString()
@@ -585,7 +638,8 @@ if (!function_exists('isNonEmptyString')) { /**
}
}
-if (!function_exists('nonEmptyString')) { /**
+if (!function_exists('nonEmptyString')) {
+ /**
* Matches if value is a non-zero-length string.
*/
function nonEmptyString()
@@ -594,7 +648,8 @@ if (!function_exists('nonEmptyString')) { /**
}
}
-if (!function_exists('equalToIgnoringCase')) { /**
+if (!function_exists('equalToIgnoringCase')) {
+ /**
* Matches if value is a string equal to $string, regardless of the case.
*/
function equalToIgnoringCase($string)
@@ -603,7 +658,8 @@ if (!function_exists('equalToIgnoringCase')) { /**
}
}
-if (!function_exists('equalToIgnoringWhiteSpace')) { /**
+if (!function_exists('equalToIgnoringWhiteSpace')) {
+ /**
* Matches if value is a string equal to $string, regardless of whitespace.
*/
function equalToIgnoringWhiteSpace($string)
@@ -612,7 +668,8 @@ if (!function_exists('equalToIgnoringWhiteSpace')) { /**
}
}
-if (!function_exists('matchesPattern')) { /**
+if (!function_exists('matchesPattern')) {
+ /**
* Matches if value is a string that matches regular expression $pattern.
*/
function matchesPattern($pattern)
@@ -621,7 +678,8 @@ if (!function_exists('matchesPattern')) { /**
}
}
-if (!function_exists('containsString')) { /**
+if (!function_exists('containsString')) {
+ /**
* Matches if value is a string that contains $substring.
*/
function containsString($substring)
@@ -630,7 +688,8 @@ if (!function_exists('containsString')) { /**
}
}
-if (!function_exists('containsStringIgnoringCase')) { /**
+if (!function_exists('containsStringIgnoringCase')) {
+ /**
* Matches if value is a string that contains $substring regardless of the case.
*/
function containsStringIgnoringCase($substring)
@@ -639,7 +698,8 @@ if (!function_exists('containsStringIgnoringCase')) { /**
}
}
-if (!function_exists('stringContainsInOrder')) { /**
+if (!function_exists('stringContainsInOrder')) {
+ /**
* Matches if value contains $substrings in a constrained order.
*/
function stringContainsInOrder(/* args... */)
@@ -649,7 +709,8 @@ if (!function_exists('stringContainsInOrder')) { /**
}
}
-if (!function_exists('endsWith')) { /**
+if (!function_exists('endsWith')) {
+ /**
* Matches if value is a string that ends with $substring.
*/
function endsWith($substring)
@@ -658,7 +719,8 @@ if (!function_exists('endsWith')) { /**
}
}
-if (!function_exists('startsWith')) { /**
+if (!function_exists('startsWith')) {
+ /**
* Matches if value is a string that starts with $substring.
*/
function startsWith($substring)
@@ -667,7 +729,8 @@ if (!function_exists('startsWith')) { /**
}
}
-if (!function_exists('arrayValue')) { /**
+if (!function_exists('arrayValue')) {
+ /**
* Is the value an array?
*/
function arrayValue()
@@ -676,7 +739,8 @@ if (!function_exists('arrayValue')) { /**
}
}
-if (!function_exists('booleanValue')) { /**
+if (!function_exists('booleanValue')) {
+ /**
* Is the value a boolean?
*/
function booleanValue()
@@ -685,7 +749,8 @@ if (!function_exists('booleanValue')) { /**
}
}
-if (!function_exists('boolValue')) { /**
+if (!function_exists('boolValue')) {
+ /**
* Is the value a boolean?
*/
function boolValue()
@@ -694,7 +759,8 @@ if (!function_exists('boolValue')) { /**
}
}
-if (!function_exists('callableValue')) { /**
+if (!function_exists('callableValue')) {
+ /**
* Is the value callable?
*/
function callableValue()
@@ -703,7 +769,8 @@ if (!function_exists('callableValue')) { /**
}
}
-if (!function_exists('doubleValue')) { /**
+if (!function_exists('doubleValue')) {
+ /**
* Is the value a float/double?
*/
function doubleValue()
@@ -712,7 +779,8 @@ if (!function_exists('doubleValue')) { /**
}
}
-if (!function_exists('floatValue')) { /**
+if (!function_exists('floatValue')) {
+ /**
* Is the value a float/double?
*/
function floatValue()
@@ -721,7 +789,8 @@ if (!function_exists('floatValue')) { /**
}
}
-if (!function_exists('integerValue')) { /**
+if (!function_exists('integerValue')) {
+ /**
* Is the value an integer?
*/
function integerValue()
@@ -730,7 +799,8 @@ if (!function_exists('integerValue')) { /**
}
}
-if (!function_exists('intValue')) { /**
+if (!function_exists('intValue')) {
+ /**
* Is the value an integer?
*/
function intValue()
@@ -739,7 +809,8 @@ if (!function_exists('intValue')) { /**
}
}
-if (!function_exists('numericValue')) { /**
+if (!function_exists('numericValue')) {
+ /**
* Is the value a numeric?
*/
function numericValue()
@@ -748,7 +819,8 @@ if (!function_exists('numericValue')) { /**
}
}
-if (!function_exists('objectValue')) { /**
+if (!function_exists('objectValue')) {
+ /**
* Is the value an object?
*/
function objectValue()
@@ -757,7 +829,8 @@ if (!function_exists('objectValue')) { /**
}
}
-if (!function_exists('anObject')) { /**
+if (!function_exists('anObject')) {
+ /**
* Is the value an object?
*/
function anObject()
@@ -766,7 +839,8 @@ if (!function_exists('anObject')) { /**
}
}
-if (!function_exists('resourceValue')) { /**
+if (!function_exists('resourceValue')) {
+ /**
* Is the value a resource?
*/
function resourceValue()
@@ -775,7 +849,8 @@ if (!function_exists('resourceValue')) { /**
}
}
-if (!function_exists('scalarValue')) { /**
+if (!function_exists('scalarValue')) {
+ /**
* Is the value a scalar (boolean, integer, double, or string)?
*/
function scalarValue()
@@ -784,7 +859,8 @@ if (!function_exists('scalarValue')) { /**
}
}
-if (!function_exists('stringValue')) { /**
+if (!function_exists('stringValue')) {
+ /**
* Is the value a string?
*/
function stringValue()
@@ -793,7 +869,8 @@ if (!function_exists('stringValue')) { /**
}
}
-if (!function_exists('hasXPath')) { /**
+if (!function_exists('hasXPath')) {
+ /**
* Wraps
$matcher
with {@link Hamcrest\Core\IsEqual)
* if it's not a matcher and the XPath in count()
* if it's an integer.
diff --git a/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseMatcher.php b/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseMatcher.php
index 286db3e1..06055698 100644
--- a/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseMatcher.php
+++ b/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseMatcher.php
@@ -22,4 +22,9 @@ abstract class BaseMatcher implements Matcher
{
return StringDescription::toString($this);
}
+
+ public function __invoke()
+ {
+ return call_user_func_array(array($this, 'matches'), func_get_args());
+ }
}
diff --git a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/AbstractMatcherTest.php b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/AbstractMatcherTest.php
index 6c52c0e5..8a1fb2a9 100644
--- a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/AbstractMatcherTest.php
+++ b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/AbstractMatcherTest.php
@@ -1,10 +1,12 @@
markTestSkipped('Broken on HHVM.');
+ }
+
$matcher = arrayContaining(array(1, 2, 3));
$this->assertMismatchDescription('was null', $matcher, null);
$this->assertMismatchDescription('No item matched: <1>', $matcher, array());
diff --git a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/CombinableMatcherTest.php b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/CombinableMatcherTest.php
index 4c226149..463c7543 100644
--- a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/CombinableMatcherTest.php
+++ b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/CombinableMatcherTest.php
@@ -7,7 +7,7 @@ class CombinableMatcherTest extends \Hamcrest\AbstractMatcherTest
private $_either_3_or_4;
private $_not_3_and_not_4;
- public function setUp()
+ protected function setUp()
{
$this->_either_3_or_4 = \Hamcrest\Core\CombinableMatcher::either(equalTo(3))->orElse(equalTo(4));
$this->_not_3_and_not_4 = \Hamcrest\Core\CombinableMatcher::both(not(equalTo(3)))->andAlso(not(equalTo(4)));
diff --git a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsInstanceOfTest.php b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsInstanceOfTest.php
index 7a5f095a..f74cfdb5 100644
--- a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsInstanceOfTest.php
+++ b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsInstanceOfTest.php
@@ -7,7 +7,7 @@ class IsInstanceOfTest extends \Hamcrest\AbstractMatcherTest
private $_baseClassInstance;
private $_subClassInstance;
- public function setUp()
+ protected function setUp()
{
$this->_baseClassInstance = new \Hamcrest\Core\SampleBaseClass('good');
$this->_subClassInstance = new \Hamcrest\Core\SampleSubClass('good');
diff --git a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/FeatureMatcherTest.php b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/FeatureMatcherTest.php
index 7543294a..1b023049 100644
--- a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/FeatureMatcherTest.php
+++ b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/FeatureMatcherTest.php
@@ -34,7 +34,7 @@ class FeatureMatcherTest extends \Hamcrest\AbstractMatcherTest
private $_resultMatcher;
- public function setUp()
+ protected function setUp()
{
$this->_resultMatcher = $this->_resultMatcher();
}
diff --git a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/InvokedMatcherTest.php b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/InvokedMatcherTest.php
new file mode 100644
index 00000000..dfa77006
--- /dev/null
+++ b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/InvokedMatcherTest.php
@@ -0,0 +1,31 @@
+matchAgainst = $matchAgainst;
+ }
+
+ public function matches($item)
+ {
+ return $item == $this->matchAgainst;
+ }
+
+}
+
+class InvokedMatcherTest extends TestCase
+{
+ public function testInvokedMatchersCallMatches()
+ {
+ $sampleMatcher = new SampleInvokeMatcher('foo');
+
+ $this->assertTrue($sampleMatcher('foo'));
+ $this->assertFalse($sampleMatcher('bar'));
+ }
+}
diff --git a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/MatcherAssertTest.php b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/MatcherAssertTest.php
index 21837121..dc12fba5 100644
--- a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/MatcherAssertTest.php
+++ b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/MatcherAssertTest.php
@@ -1,7 +1,9 @@
_description = new \Hamcrest\StringDescription();
}
diff --git a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEqualIgnoringWhiteSpaceTest.php b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEqualIgnoringWhiteSpaceTest.php
index 6c2304f4..27ad338b 100644
--- a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEqualIgnoringWhiteSpaceTest.php
+++ b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEqualIgnoringWhiteSpaceTest.php
@@ -6,7 +6,7 @@ class IsEqualIgnoringWhiteSpaceTest extends \Hamcrest\AbstractMatcherTest
private $_matcher;
- public function setUp()
+ protected function setUp()
{
$this->_matcher = \Hamcrest\Text\IsEqualIgnoringWhiteSpace::equalToIgnoringWhiteSpace(
"Hello World how\n are we? "
diff --git a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsIgnoringCaseTest.php b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsIgnoringCaseTest.php
index 3b5b08e3..73023007 100644
--- a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsIgnoringCaseTest.php
+++ b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsIgnoringCaseTest.php
@@ -8,7 +8,7 @@ class StringContainsIgnoringCaseTest extends \Hamcrest\AbstractMatcherTest
private $_stringContains;
- public function setUp()
+ protected function setUp()
{
$this->_stringContains = \Hamcrest\Text\StringContainsIgnoringCase::containsStringIgnoringCase(
strtolower(self::EXCERPT)
diff --git a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsInOrderTest.php b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsInOrderTest.php
index 0be70629..4c465b29 100644
--- a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsInOrderTest.php
+++ b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsInOrderTest.php
@@ -6,7 +6,7 @@ class StringContainsInOrderTest extends \Hamcrest\AbstractMatcherTest
private $_m;
- public function setUp()
+ protected function setUp()
{
$this->_m = \Hamcrest\Text\StringContainsInOrder::stringContainsInOrder(array('a', 'b', 'c'));
}
diff --git a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsTest.php b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsTest.php
index 203fd918..bf4afa3c 100644
--- a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsTest.php
+++ b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsTest.php
@@ -8,7 +8,7 @@ class StringContainsTest extends \Hamcrest\AbstractMatcherTest
private $_stringContains;
- public function setUp()
+ protected function setUp()
{
$this->_stringContains = \Hamcrest\Text\StringContains::containsString(self::EXCERPT);
}
diff --git a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringEndsWithTest.php b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringEndsWithTest.php
index fffa3c9c..9a30f952 100644
--- a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringEndsWithTest.php
+++ b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringEndsWithTest.php
@@ -8,7 +8,7 @@ class StringEndsWithTest extends \Hamcrest\AbstractMatcherTest
private $_stringEndsWith;
- public function setUp()
+ protected function setUp()
{
$this->_stringEndsWith = \Hamcrest\Text\StringEndsWith::endsWith(self::EXCERPT);
}
diff --git a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringStartsWithTest.php b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringStartsWithTest.php
index fc3761bd..3be201f1 100644
--- a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringStartsWithTest.php
+++ b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringStartsWithTest.php
@@ -8,7 +8,7 @@ class StringStartsWithTest extends \Hamcrest\AbstractMatcherTest
private $_stringStartsWith;
- public function setUp()
+ protected function setUp()
{
$this->_stringStartsWith = \Hamcrest\Text\StringStartsWith::startsWith(self::EXCERPT);
}
diff --git a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/UtilTest.php b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/UtilTest.php
index 0c2cd043..7248978c 100644
--- a/vendor/hamcrest/hamcrest-php/tests/Hamcrest/UtilTest.php
+++ b/vendor/hamcrest/hamcrest-php/tests/Hamcrest/UtilTest.php
@@ -1,7 +1,9 @@
+ stopOnFailure="false">
- + @@ -9,7 +9,7 @@ ## About Laravel -> **Note:** This repository contains the core code of the Laravel framework. If you want to build an application using Laravel 5, visit the main [Laravel repository](https://github.com/laravel/laravel). +> **Note:** This repository contains the core code of the Laravel framework. If you want to build an application using Laravel, visit the main [Laravel repository](https://github.com/laravel/laravel). Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as: @@ -20,7 +20,7 @@ Laravel is a web application framework with expressive, elegant syntax. We belie - [Robust background job processing](https://laravel.com/docs/queues). - [Real-time event broadcasting](https://laravel.com/docs/broadcasting). -Laravel is accessible, yet powerful, providing tools needed for large, robust applications. A superb combination of simplicity, elegance, and innovation gives you a complete toolset required to build any application with which you are tasked +Laravel is accessible, yet powerful, providing tools needed for large, robust applications. A superb combination of simplicity, elegance, and innovation gives you a complete toolset required to build any application with which you are tasked. ## Learning Laravel @@ -34,12 +34,12 @@ Thank you for considering contributing to the Laravel framework! The contributio ## Code of Conduct -In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](CODE_OF_CONDUCT.md). +In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). ## Security Vulnerabilities -If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. +Please review [our security policy](https://github.com/laravel/framework/security/policy) on how to report security vulnerabilities. ## License -The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). +The Laravel framework is open-sourced software licensed under the [MIT license](LICENSE.md). diff --git a/vendor/laravel/framework/composer.json b/vendor/laravel/framework/composer.json index feee8408..dea51b9a 100644 --- a/vendor/laravel/framework/composer.json +++ b/vendor/laravel/framework/composer.json @@ -15,32 +15,35 @@ } ], "require": { - "php": "^7.1.3", + "php": "^7.2.5|^8.0", + "ext-json": "*", "ext-mbstring": "*", "ext-openssl": "*", - "doctrine/inflector": "^1.1", - "dragonmantank/cron-expression": "^2.0", - "erusev/parsedown": "^1.7", - "laravel/nexmo-notification-channel": "^1.0", - "laravel/slack-notification-channel": "^1.0", - "league/flysystem": "^1.0.8", - "monolog/monolog": "^1.12", - "nesbot/carbon": "^1.26.3", - "opis/closure": "^3.1", + "doctrine/inflector": "^1.4|^2.0", + "dragonmantank/cron-expression": "^2.3.1", + "egulias/email-validator": "^2.1.10", + "league/commonmark": "^1.3", + "league/flysystem": "^1.1", + "monolog/monolog": "^2.0", + "nesbot/carbon": "^2.31", + "opis/closure": "^3.6", "psr/container": "^1.0", "psr/simple-cache": "^1.0", - "ramsey/uuid": "^3.7", + "ramsey/uuid": "^3.7|^4.0", "swiftmailer/swiftmailer": "^6.0", - "symfony/console": "^4.1", - "symfony/debug": "^4.1", - "symfony/finder": "^4.1", - "symfony/http-foundation": "^4.1", - "symfony/http-kernel": "^4.1", - "symfony/process": "^4.1", - "symfony/routing": "^4.1", - "symfony/var-dumper": "^4.1", - "tijsverkoyen/css-to-inline-styles": "^2.2.1", - "vlucas/phpdotenv": "^2.2" + "symfony/console": "^5.0", + "symfony/error-handler": "^5.0", + "symfony/finder": "^5.0", + "symfony/http-foundation": "^5.0", + "symfony/http-kernel": "^5.0", + "symfony/mime": "^5.0", + "symfony/polyfill-php73": "^1.17", + "symfony/process": "^5.0", + "symfony/routing": "^5.0", + "symfony/var-dumper": "^5.0", + "tijsverkoyen/css-to-inline-styles": "^2.2.2", + "vlucas/phpdotenv": "^4.0", + "voku/portable-ascii": "^1.4.8" }, "replace": { "illuminate/auth": "self.version", @@ -68,29 +71,31 @@ "illuminate/routing": "self.version", "illuminate/session": "self.version", "illuminate/support": "self.version", + "illuminate/testing": "self.version", "illuminate/translation": "self.version", "illuminate/validation": "self.version", "illuminate/view": "self.version" }, + "require-dev": { + "aws/aws-sdk-php": "^3.155", + "doctrine/dbal": "^2.6", + "filp/whoops": "^2.8", + "guzzlehttp/guzzle": "^6.3.1|^7.0.1", + "league/flysystem-cached-adapter": "^1.0", + "mockery/mockery": "~1.3.3|^1.4.2", + "moontoast/math": "^1.1", + "orchestra/testbench-core": "^5.8", + "pda/pheanstalk": "^4.0", + "phpunit/phpunit": "^8.4|^9.3.3", + "predis/predis": "^1.1.1", + "symfony/cache": "^5.0" + }, + "provide": { + "psr/container-implementation": "1.0" + }, "conflict": { "tightenco/collect": "<5.5.33" }, - "require-dev": { - "aws/aws-sdk-php": "^3.0", - "doctrine/dbal": "^2.6", - "filp/whoops": "^2.1.4", - "guzzlehttp/guzzle": "^6.3", - "league/flysystem-cached-adapter": "^1.0", - "mockery/mockery": "^1.0", - "moontoast/math": "^1.1", - "orchestra/testbench-core": "3.7.*", - "pda/pheanstalk": "^3.0|^4.0", - "phpunit/phpunit": "^7.5", - "predis/predis": "^1.1.1", - "symfony/css-selector": "^4.1", - "symfony/dom-crawler": "^4.1", - "true/punycode": "^2.1" - }, "autoload": { "files": [ "src/Illuminate/Foundation/helpers.php", @@ -110,30 +115,37 @@ }, "extra": { "branch-alias": { - "dev-master": "5.7-dev" + "dev-master": "7.x-dev" } }, "suggest": { + "ext-ftp": "Required to use the Flysystem FTP driver.", + "ext-gd": "Required to use Illuminate\\Http\\Testing\\FileFactory::image().", + "ext-memcached": "Required to use the memcache cache driver.", "ext-pcntl": "Required to use all features of the queue worker.", "ext-posix": "Required to use all features of the queue worker.", - "aws/aws-sdk-php": "Required to use the SQS queue driver and SES mail driver (^3.0).", + "ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0).", + "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage and SES mail driver (^3.155).", "doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.6).", - "filp/whoops": "Required for friendly error pages in development (^2.1.4).", - "fzaninotto/faker": "Required to use the eloquent factory builder (^1.4).", - "guzzlehttp/guzzle": "Required to use the Mailgun and Mandrill mail drivers and the ping methods on schedules (^6.0).", - "laravel/tinker": "Required to use the tinker console command (^1.0).", + "filp/whoops": "Required for friendly error pages in development (^2.8).", + "fakerphp/faker": "Required to use the eloquent factory builder (^1.9.1).", + "guzzlehttp/guzzle": "Required to use the HTTP Client, Mailgun mail driver and the ping methods on schedules (^6.3.1|^7.0.1).", + "laravel/tinker": "Required to use the tinker console command (^2.0).", "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^1.0).", "league/flysystem-cached-adapter": "Required to use the Flysystem cache (^1.0).", - "league/flysystem-rackspace": "Required to use the Flysystem Rackspace driver (^1.0).", "league/flysystem-sftp": "Required to use the Flysystem SFTP driver (^1.0).", + "mockery/mockery": "Required to use mocking (~1.3.3|^1.4.2).", "moontoast/math": "Required to use ordered UUIDs (^1.1).", - "nexmo/client": "Required to use the Nexmo transport (^1.0).", - "pda/pheanstalk": "Required to use the beanstalk queue driver (^3.0|^4.0).", - "predis/predis": "Required to use the redis cache and queue drivers (^1.0).", - "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^3.0).", - "symfony/css-selector": "Required to use some of the crawler integration testing tools (^4.1).", - "symfony/dom-crawler": "Required to use most of the crawler integration testing tools (^4.1).", - "symfony/psr-http-message-bridge": "Required to psr7 bridging features (^1.0)." + "nyholm/psr7": "Required to use PSR-7 bridging features (^1.2).", + "pda/pheanstalk": "Required to use the beanstalk queue driver (^4.0).", + "phpunit/phpunit": "Required to use assertions and run tests (^8.4|^9.3.3).", + "predis/predis": "Required to use the predis connector (^1.1.2).", + "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).", + "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^4.0).", + "symfony/cache": "Required to PSR-6 cache bridge (^5.0).", + "symfony/filesystem": "Required to create relative storage directory symbolic links (^5.0).", + "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^2.0).", + "wildbit/swiftmailer-postmark": "Required to use Postmark mail driver (^3.0)." }, "config": { "sort-packages": true diff --git a/vendor/laravel/framework/src/Illuminate/Auth/Access/AuthorizationException.php b/vendor/laravel/framework/src/Illuminate/Auth/Access/AuthorizationException.php index dc0753e2..7fe6ceba 100644 --- a/vendor/laravel/framework/src/Illuminate/Auth/Access/AuthorizationException.php +++ b/vendor/laravel/framework/src/Illuminate/Auth/Access/AuthorizationException.php @@ -3,8 +3,62 @@ namespace Illuminate\Auth\Access; use Exception; +use Throwable; class AuthorizationException extends Exception { - // + /** + * The response from the gate. + * + * @var \Illuminate\Auth\Access\Response + */ + protected $response; + + /** + * Create a new authorization exception instance. + * + * @param string|null $message + * @param mixed $code + * @param \Throwable|null $previous + * @return void + */ + public function __construct($message = null, $code = null, Throwable $previous = null) + { + parent::__construct($message ?? 'This action is unauthorized.', 0, $previous); + + $this->code = $code ?: 0; + } + + /** + * Get the response from the gate. + * + * @return \Illuminate\Auth\Access\Response + */ + public function response() + { + return $this->response; + } + + /** + * Set the response from the gate. + * + * @param \Illuminate\Auth\Access\Response $response + * @return $this + */ + public function setResponse($response) + { + $this->response = $response; + + return $this; + } + + /** + * Create a deny response object from this exception. + * + * @return \Illuminate\Auth\Access\Response + */ + public function toResponse() + { + return Response::deny($this->message, $this->code); + } } diff --git a/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php b/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php index 19db5076..8c955b46 100644 --- a/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php +++ b/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php @@ -3,13 +3,13 @@ namespace Illuminate\Auth\Access; use Exception; -use ReflectionClass; -use ReflectionFunction; +use Illuminate\Contracts\Auth\Access\Gate as GateContract; +use Illuminate\Contracts\Container\Container; use Illuminate\Support\Arr; use Illuminate\Support\Str; use InvalidArgumentException; -use Illuminate\Contracts\Container\Container; -use Illuminate\Contracts\Auth\Access\Gate as GateContract; +use ReflectionClass; +use ReflectionFunction; class Gate implements GateContract { @@ -57,6 +57,20 @@ class Gate implements GateContract */ protected $afterCallbacks = []; + /** + * All of the defined abilities using class@method notation. + * + * @var array + */ + protected $stringCallbacks = []; + + /** + * The callback to be used to guess policy names. + * + * @var callable|null + */ + protected $guessPolicyNamesUsingCallback; + /** * Create a new gate instance. * @@ -66,10 +80,12 @@ class Gate implements GateContract * @param array $policies * @param array $beforeCallbacks * @param array $afterCallbacks + * @param callable|null $guessPolicyNamesUsingCallback * @return void */ public function __construct(Container $container, callable $userResolver, array $abilities = [], - array $policies = [], array $beforeCallbacks = [], array $afterCallbacks = []) + array $policies = [], array $beforeCallbacks = [], array $afterCallbacks = [], + callable $guessPolicyNamesUsingCallback = null) { $this->policies = $policies; $this->container = $container; @@ -77,6 +93,7 @@ class Gate implements GateContract $this->userResolver = $userResolver; $this->afterCallbacks = $afterCallbacks; $this->beforeCallbacks = $beforeCallbacks; + $this->guessPolicyNamesUsingCallback = $guessPolicyNamesUsingCallback; } /** @@ -109,9 +126,15 @@ class Gate implements GateContract */ public function define($ability, $callback) { + if (is_array($callback) && isset($callback[0]) && is_string($callback[0])) { + $callback = $callback[0].'@'.$callback[1]; + } + if (is_callable($callback)) { $this->abilities[$ability] = $callback; } elseif (is_string($callback)) { + $this->stringCallbacks[$ability] = $callback; + $this->abilities[$ability] = $this->buildAbilityCallback($ability, $callback); } else { throw new InvalidArgumentException("Callback must be a callable or a 'Class@method' string."); @@ -125,16 +148,17 @@ class Gate implements GateContract * * @param string $name * @param string $class - * @param array|null $abilities + * @param array|null $abilities * @return $this */ public function resource($name, $class, array $abilities = null) { $abilities = $abilities ?: [ - 'view' => 'view', - 'create' => 'create', - 'update' => 'update', - 'delete' => 'delete', + 'viewAny' => 'viewAny', + 'view' => 'view', + 'create' => 'create', + 'update' => 'update', + 'delete' => 'delete', ]; foreach ($abilities as $ability => $method) { @@ -254,11 +278,7 @@ class Gate implements GateContract public function check($abilities, $arguments = []) { return collect($abilities)->every(function ($ability) use ($arguments) { - try { - return (bool) $this->raw($ability, $arguments); - } catch (AuthorizationException $e) { - return false; - } + return $this->inspect($ability, $arguments)->allowed(); }); } @@ -276,6 +296,18 @@ class Gate implements GateContract }); } + /** + * Determine if all of the given abilities should be denied for the current user. + * + * @param iterable|string $abilities + * @param array|mixed $arguments + * @return bool + */ + public function none($abilities, $arguments = []) + { + return ! $this->any($abilities, $arguments); + } + /** * Determine if the given ability should be granted for the current user. * @@ -287,13 +319,29 @@ class Gate implements GateContract */ public function authorize($ability, $arguments = []) { - $result = $this->raw($ability, $arguments); + return $this->inspect($ability, $arguments)->authorize(); + } - if ($result instanceof Response) { - return $result; + /** + * Inspect the user for the given ability. + * + * @param string $ability + * @param array|mixed $arguments + * @return \Illuminate\Auth\Access\Response + */ + public function inspect($ability, $arguments = []) + { + try { + $result = $this->raw($ability, $arguments); + + if ($result instanceof Response) { + return $result; + } + + return $result ? Response::allow() : Response::deny(); + } catch (AuthorizationException $e) { + return $e->toResponse(); } - - return $result ? $this->allow() : $this->deny(); } /** @@ -302,6 +350,8 @@ class Gate implements GateContract * @param string $ability * @param array|mixed $arguments * @return mixed + * + * @throws \Illuminate\Auth\Access\AuthorizationException */ public function raw($ability, $arguments = []) { @@ -333,7 +383,7 @@ class Gate implements GateContract * * @param \Illuminate\Contracts\Auth\Authenticatable|null $user * @param \Closure|string|array $class - * @param string|null $method + * @param string|null $method * @return bool */ protected function canBeCalledWithUser($user, $class, $method = null) @@ -386,6 +436,8 @@ class Gate implements GateContract * * @param callable $callback * @return bool + * + * @throws \ReflectionException */ protected function callbackAllowsGuests($callback) { @@ -402,7 +454,7 @@ class Gate implements GateContract */ protected function parameterAllowsGuests($parameter) { - return ($parameter->getClass() && $parameter->allowsNull()) || + return ($parameter->hasType() && $parameter->allowsNull()) || ($parameter->isDefaultValueAvailable() && is_null($parameter->getDefaultValue())); } @@ -431,14 +483,12 @@ class Gate implements GateContract */ protected function callBeforeCallbacks($user, $ability, array $arguments) { - $arguments = array_merge([$user, $ability], [$arguments]); - foreach ($this->beforeCallbacks as $before) { if (! $this->canBeCalledWithUser($user, $before)) { continue; } - if (! is_null($result = $before(...$arguments))) { + if (! is_null($result = $before($user, $ability, $arguments))) { return $result; } } @@ -484,13 +534,21 @@ class Gate implements GateContract return $callback; } + if (isset($this->stringCallbacks[$ability])) { + [$class, $method] = Str::parseCallback($this->stringCallbacks[$ability]); + + if ($this->canBeCalledWithUser($user, $class, $method ?: '__invoke')) { + return $this->abilities[$ability]; + } + } + if (isset($this->abilities[$ability]) && $this->canBeCalledWithUser($user, $this->abilities[$ability])) { return $this->abilities[$ability]; } return function () { - return null; + // }; } @@ -514,6 +572,12 @@ class Gate implements GateContract return $this->resolvePolicy($this->policies[$class]); } + foreach ($this->guessPolicyName($class) as $guessedPolicy) { + if (class_exists($guessedPolicy)) { + return $this->resolvePolicy($guessedPolicy); + } + } + foreach ($this->policies as $expected => $policy) { if (is_subclass_of($class, $expected)) { return $this->resolvePolicy($policy); @@ -521,11 +585,43 @@ class Gate implements GateContract } } + /** + * Guess the policy name for the given class. + * + * @param string $class + * @return array + */ + protected function guessPolicyName($class) + { + if ($this->guessPolicyNamesUsingCallback) { + return Arr::wrap(call_user_func($this->guessPolicyNamesUsingCallback, $class)); + } + + $classDirname = str_replace('/', '\\', dirname(str_replace('\\', '/', $class))); + + return [$classDirname.'\\Policies\\'.class_basename($class).'Policy']; + } + + /** + * Specify a callback to be used to guess policy names. + * + * @param callable $callback + * @return $this + */ + public function guessPolicyNamesUsing(callable $callback) + { + $this->guessPolicyNamesUsingCallback = $callback; + + return $this; + } + /** * Build a policy class instance of the given type. * * @param object|string $class * @return mixed + * + * @throws \Illuminate\Contracts\Container\BindingResolutionException */ public function resolvePolicy($class) { @@ -580,7 +676,7 @@ class Gate implements GateContract protected function callPolicyBefore($policy, $user, $ability, $arguments) { if (! method_exists($policy, 'before')) { - return null; + return; } if ($this->canBeCalledWithUser($user, $policy, 'before')) { @@ -607,7 +703,7 @@ class Gate implements GateContract } if (! is_callable([$policy, $method])) { - return null; + return; } if ($this->canBeCalledWithUser($user, $policy, $method)) { @@ -640,7 +736,8 @@ class Gate implements GateContract return new static( $this->container, $callback, $this->abilities, - $this->policies, $this->beforeCallbacks, $this->afterCallbacks + $this->policies, $this->beforeCallbacks, $this->afterCallbacks, + $this->guessPolicyNamesUsingCallback ); } diff --git a/vendor/laravel/framework/src/Illuminate/Auth/Access/HandlesAuthorization.php b/vendor/laravel/framework/src/Illuminate/Auth/Access/HandlesAuthorization.php index 1a597bb9..66e5786e 100644 --- a/vendor/laravel/framework/src/Illuminate/Auth/Access/HandlesAuthorization.php +++ b/vendor/laravel/framework/src/Illuminate/Auth/Access/HandlesAuthorization.php @@ -8,23 +8,23 @@ trait HandlesAuthorization * Create a new access response. * * @param string|null $message + * @param mixed $code * @return \Illuminate\Auth\Access\Response */ - protected function allow($message = null) + protected function allow($message = null, $code = null) { - return new Response($message); + return Response::allow($message, $code); } /** * Throws an unauthorized exception. * - * @param string $message - * @return void - * - * @throws \Illuminate\Auth\Access\AuthorizationException + * @param string|null $message + * @param mixed|null $code + * @return \Illuminate\Auth\Access\Response */ - protected function deny($message = 'This action is unauthorized.') + protected function deny($message = null, $code = null) { - throw new AuthorizationException($message); + return Response::deny($message, $code); } } diff --git a/vendor/laravel/framework/src/Illuminate/Auth/Access/Response.php b/vendor/laravel/framework/src/Illuminate/Auth/Access/Response.php index 7fab01ef..ab5edf39 100644 --- a/vendor/laravel/framework/src/Illuminate/Auth/Access/Response.php +++ b/vendor/laravel/framework/src/Illuminate/Auth/Access/Response.php @@ -2,8 +2,17 @@ namespace Illuminate\Auth\Access; -class Response +use Illuminate\Contracts\Support\Arrayable; + +class Response implements Arrayable { + /** + * Indicates whether the response was allowed. + * + * @var bool + */ + protected $allowed; + /** * The response message. * @@ -11,17 +20,72 @@ class Response */ protected $message; + /** + * The response code. + * + * @var mixed + */ + protected $code; + /** * Create a new response. * - * @param string|null $message + * @param bool $allowed + * @param string $message + * @param mixed $code * @return void */ - public function __construct($message = null) + public function __construct($allowed, $message = '', $code = null) { + $this->code = $code; + $this->allowed = $allowed; $this->message = $message; } + /** + * Create a new "allow" Response. + * + * @param string|null $message + * @param mixed $code + * @return \Illuminate\Auth\Access\Response + */ + public static function allow($message = null, $code = null) + { + return new static(true, $message, $code); + } + + /** + * Create a new "deny" Response. + * + * @param string|null $message + * @param mixed $code + * @return \Illuminate\Auth\Access\Response + */ + public static function deny($message = null, $code = null) + { + return new static(false, $message, $code); + } + + /** + * Determine if the response was allowed. + * + * @return bool + */ + public function allowed() + { + return $this->allowed; + } + + /** + * Determine if the response was denied. + * + * @return bool + */ + public function denied() + { + return ! $this->allowed(); + } + /** * Get the response message. * @@ -32,6 +96,47 @@ class Response return $this->message; } + /** + * Get the response code / reason. + * + * @return mixed + */ + public function code() + { + return $this->code; + } + + /** + * Throw authorization exception if response was denied. + * + * @return \Illuminate\Auth\Access\Response + * + * @throws \Illuminate\Auth\Access\AuthorizationException + */ + public function authorize() + { + if ($this->denied()) { + throw (new AuthorizationException($this->message(), $this->code())) + ->setResponse($this); + } + + return $this; + } + + /** + * Convert the response to an array. + * + * @return array + */ + public function toArray() + { + return [ + 'allowed' => $this->allowed(), + 'message' => $this->message(), + 'code' => $this->code(), + ]; + } + /** * Get the string representation of the message. * diff --git a/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php b/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php index e4e5b415..ebbd7f5f 100755 --- a/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php +++ b/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php @@ -3,8 +3,8 @@ namespace Illuminate\Auth; use Closure; -use InvalidArgumentException; use Illuminate\Contracts\Auth\Factory as FactoryContract; +use InvalidArgumentException; class AuthManager implements FactoryContract { @@ -13,7 +13,7 @@ class AuthManager implements FactoryContract /** * The application instance. * - * @var \Illuminate\Foundation\Application + * @var \Illuminate\Contracts\Foundation\Application */ protected $app; @@ -43,7 +43,7 @@ class AuthManager implements FactoryContract /** * Create a new Auth manager instance. * - * @param \Illuminate\Foundation\Application $app + * @param \Illuminate\Contracts\Foundation\Application $app * @return void */ public function __construct($app) @@ -58,7 +58,7 @@ class AuthManager implements FactoryContract /** * Attempt to get the guard from the local cache. * - * @param string $name + * @param string|null $name * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard */ public function guard($name = null) @@ -94,7 +94,9 @@ class AuthManager implements FactoryContract return $this->{$driverMethod}($name, $config); } - throw new InvalidArgumentException("Auth driver [{$config['driver']}] for guard [{$name}] is not defined."); + throw new InvalidArgumentException( + "Auth driver [{$config['driver']}] for guard [{$name}] is not defined." + ); } /** @@ -156,7 +158,8 @@ class AuthManager implements FactoryContract $this->createUserProvider($config['provider'] ?? null), $this->app['request'], $config['input_key'] ?? 'api_token', - $config['storage_key'] ?? 'api_token' + $config['storage_key'] ?? 'api_token', + $config['hash'] ?? false ); $this->app->refresh('request', $guard, 'setRequest'); @@ -282,6 +285,16 @@ class AuthManager implements FactoryContract return $this; } + /** + * Determines if any guards have already been resolved. + * + * @return bool + */ + public function hasResolvedGuards() + { + return count($this->guards) > 0; + } + /** * Dynamically call the default driver instance. * diff --git a/vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php b/vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php index 2820beb4..7a6b4121 100755 --- a/vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php +++ b/vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php @@ -3,9 +3,12 @@ namespace Illuminate\Auth; use Illuminate\Auth\Access\Gate; -use Illuminate\Support\ServiceProvider; +use Illuminate\Auth\Middleware\RequirePassword; use Illuminate\Contracts\Auth\Access\Gate as GateContract; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; +use Illuminate\Contracts\Routing\ResponseFactory; +use Illuminate\Contracts\Routing\UrlGenerator; +use Illuminate\Support\ServiceProvider; class AuthServiceProvider extends ServiceProvider { @@ -17,12 +20,11 @@ class AuthServiceProvider extends ServiceProvider public function register() { $this->registerAuthenticator(); - $this->registerUserResolver(); - $this->registerAccessGate(); - + $this->registerRequirePassword(); $this->registerRequestRebindHandler(); + $this->registerEventRebindHandler(); } /** @@ -79,6 +81,24 @@ class AuthServiceProvider extends ServiceProvider * * @return void */ + protected function registerRequirePassword() + { + $this->app->bind( + RequirePassword::class, function ($app) { + return new RequirePassword( + $app[ResponseFactory::class], + $app[UrlGenerator::class], + $app['config']->get('auth.password_timeout') + ); + } + ); + } + + /** + * Handle the re-binding of the request binding. + * + * @return void + */ protected function registerRequestRebindHandler() { $this->app->rebinding('request', function ($app, $request) { @@ -87,4 +107,26 @@ class AuthServiceProvider extends ServiceProvider }); }); } + + /** + * Handle the re-binding of the event dispatcher binding. + * + * @return void + */ + protected function registerEventRebindHandler() + { + $this->app->rebinding('events', function ($app, $dispatcher) { + if (! $app->resolved('auth')) { + return; + } + + if ($app['auth']->hasResolvedGuards() === false) { + return; + } + + if (method_exists($guard = $app['auth']->guard(), 'setDispatcher')) { + $guard->setDispatcher($dispatcher); + } + }); + } } diff --git a/vendor/laravel/framework/src/Illuminate/Auth/Console/AuthMakeCommand.php b/vendor/laravel/framework/src/Illuminate/Auth/Console/AuthMakeCommand.php deleted file mode 100644 index cfe95977..00000000 --- a/vendor/laravel/framework/src/Illuminate/Auth/Console/AuthMakeCommand.php +++ /dev/null @@ -1,120 +0,0 @@ - 'auth/login.blade.php', - 'auth/register.stub' => 'auth/register.blade.php', - 'auth/verify.stub' => 'auth/verify.blade.php', - 'auth/passwords/email.stub' => 'auth/passwords/email.blade.php', - 'auth/passwords/reset.stub' => 'auth/passwords/reset.blade.php', - 'layouts/app.stub' => 'layouts/app.blade.php', - 'home.stub' => 'home.blade.php', - ]; - - /** - * Execute the console command. - * - * @return void - */ - public function handle() - { - $this->createDirectories(); - - $this->exportViews(); - - if (! $this->option('views')) { - file_put_contents( - app_path('Http/Controllers/HomeController.php'), - $this->compileControllerStub() - ); - - file_put_contents( - base_path('routes/web.php'), - file_get_contents(__DIR__.'/stubs/make/routes.stub'), - FILE_APPEND - ); - } - - $this->info('Authentication scaffolding generated successfully.'); - } - - /** - * Create the directories for the files. - * - * @return void - */ - protected function createDirectories() - { - if (! is_dir($directory = resource_path('views/layouts'))) { - mkdir($directory, 0755, true); - } - - if (! is_dir($directory = resource_path('views/auth/passwords'))) { - mkdir($directory, 0755, true); - } - } - - /** - * Export the authentication views. - * - * @return void - */ - protected function exportViews() - { - foreach ($this->views as $key => $value) { - if (file_exists($view = resource_path('views/'.$value)) && ! $this->option('force')) { - if (! $this->confirm("The [{$value}] view already exists. Do you want to replace it?")) { - continue; - } - } - - copy( - __DIR__.'/stubs/make/views/'.$key, - $view - ); - } - } - - /** - * Compiles the HomeController stub. - * - * @return string - */ - protected function compileControllerStub() - { - return str_replace( - '{{namespace}}', - $this->getAppNamespace(), - file_get_contents(__DIR__.'/stubs/make/controllers/HomeController.stub') - ); - } -} diff --git a/vendor/laravel/framework/src/Illuminate/Auth/Console/stubs/make/views/auth/login.stub b/vendor/laravel/framework/src/Illuminate/Auth/Console/stubs/make/views/auth/login.stub deleted file mode 100644 index 9edb920e..00000000 --- a/vendor/laravel/framework/src/Illuminate/Auth/Console/stubs/make/views/auth/login.stub +++ /dev/null @@ -1,73 +0,0 @@ -@extends('layouts.app') - -@section('content') -