Browse Source

Update intl dependency

split-manual
J. King 5 years ago
parent
commit
4e4aee2edd
  1. 6
      composer.lock
  2. 2
      lib/Data.php
  3. 2
      tests/cases/TestTokenizer.php

6
composer.lock

@ -8,11 +8,11 @@
"packages": [
{
"name": "mensbeam/intl",
"version": "0.4.0",
"version": "0.5.0",
"source": {
"type": "git",
"url": "https://code.mensbeam.com/MensBeam/intl",
"reference": "58328b7524b6889889ef0a60ab9e622b3d071a4a"
"reference": "2e47fde77465114c509bec270d44261da71bbf89"
},
"require": {
"php": "^7.0"
@ -49,7 +49,7 @@
"utf-8",
"utf8"
],
"time": "2018-09-15T23:52:16+00:00"
"time": "2019-12-13T16:05:01+00:00"
}
],
"packages-dev": [

2
lib/Data.php

@ -100,7 +100,7 @@ class Data {
public function unconsume(int $length = 1) {
assert($length > 0, new Exception(Exception::DATA_INVALID_DATA_CONSUMPTION_LENGTH, $length));
if ($this->data->peekChar($length) !== '') {
if (!$this->data->eof()) {
$this->data->seek(0 - $length);
$string = $this->data->peekChar($length);

2
tests/cases/TestTokenizer.php

@ -45,7 +45,7 @@ class TestTokenizer extends \dW\HTML5\Test\StandardTest {
public function provideStandardTokenizerTests() {
$tests = [];
$blacklist = ["pendingSpecChanges.test", "xmlViolation.test"];
foreach (new \GlobIterator(\dW\HTML5\BASE."tests/html5lib-tests/tokenizer/test*.test", \FilesystemIterator::SKIP_DOTS | \FilesystemIterator::CURRENT_AS_PATHNAME) as $file) {
foreach (new \GlobIterator(\dW\HTML5\BASE."tests/html5lib-tests/tokenizer/*.test", \FilesystemIterator::SKIP_DOTS | \FilesystemIterator::CURRENT_AS_PATHNAME) as $file) {
if (!in_array(basename($file), $blacklist)) {
$tests[] = $file;
}

Loading…
Cancel
Save