This commit is contained in:
Fabien Potencier 2019-01-16 14:43:35 +01:00
parent 1429267f9c
commit 37ab4cd056
4 changed files with 10 additions and 10 deletions

View File

@ -178,10 +178,10 @@ class DoctrineExtensionTest extends TestCase
['doctrine.orm.cache.apcu.class', ['type' => 'apcu']],
['doctrine.orm.cache.array.class', ['type' => 'array']],
['doctrine.orm.cache.xcache.class', ['type' => 'xcache']],
['doctrine.orm.cache.wincache.class', array ('type' => 'wincache')],
['doctrine.orm.cache.zenddata.class', array ('type' => 'zenddata')],
['doctrine.orm.cache.wincache.class', ['type' => 'wincache']],
['doctrine.orm.cache.zenddata.class', ['type' => 'zenddata']],
['doctrine.orm.cache.redis.class', ['type' => 'redis'], ['setRedis']],
['doctrine.orm.cache.memcache.class', array ('type' => 'memcache'), array ('setMemcache')],
['doctrine.orm.cache.memcache.class', ['type' => 'memcache'], ['setMemcache']],
['doctrine.orm.cache.memcached.class', ['type' => 'memcached'], ['setMemcached']],
];
}

View File

@ -68,15 +68,15 @@ class PathFilterIteratorTest extends IteratorTestCase
[$inner, ['/^A/'], [], ['abc.dat', 'ab.dat', 'a.dat']],
[$inner, ['/^A\/B/'], [], ['abc.dat', 'ab.dat']],
[$inner, ['/^A\/B\/C/'], [], ['abc.dat']],
[$inner, ['/A\/B\/C/'], array (), ['abc.dat', 'abc.dat.copy']],
[$inner, ['/A\/B\/C/'], [], ['abc.dat', 'abc.dat.copy']],
[$inner, ['A'], [], ['abc.dat', 'ab.dat', 'a.dat', 'abc.dat.copy', 'ab.dat.copy', 'a.dat.copy']],
[$inner, ['A/B'], [], ['abc.dat', 'ab.dat', 'abc.dat.copy', 'ab.dat.copy']],
[$inner, ['A/B/C'], array (), ['abc.dat', 'abc.dat.copy']],
[$inner, ['A/B/C'], [], ['abc.dat', 'abc.dat.copy']],
[$inner, ['copy/A'], [], ['abc.dat.copy', 'ab.dat.copy', 'a.dat.copy']],
[$inner, ['copy/A/B'], [], ['abc.dat.copy', 'ab.dat.copy']],
[$inner, ['copy/A/B/C'], array (), ['abc.dat.copy']],
[$inner, ['copy/A/B/C'], [], ['abc.dat.copy']],
];
}
}

View File

@ -95,9 +95,9 @@ class AcceptHeaderTest extends TestCase
public function provideSortingData()
{
return [
'quality has priority' => ['*;q=0.3,ISO-8859-1,utf-8;q=0.7', array ('ISO-8859-1', 'utf-8', '*')],
'order matters when q is equal' => ['*;q=0.3,ISO-8859-1;q=0.7,utf-8;q=0.7', array ('ISO-8859-1', 'utf-8', '*')],
'order matters when q is equal2' => ['*;q=0.3,utf-8;q=0.7,ISO-8859-1;q=0.7', array ('utf-8', 'ISO-8859-1', '*')],
'quality has priority' => ['*;q=0.3,ISO-8859-1,utf-8;q=0.7', ['ISO-8859-1', 'utf-8', '*']],
'order matters when q is equal' => ['*;q=0.3,ISO-8859-1;q=0.7,utf-8;q=0.7', ['ISO-8859-1', 'utf-8', '*']],
'order matters when q is equal2' => ['*;q=0.3,utf-8;q=0.7,ISO-8859-1;q=0.7', ['utf-8', 'ISO-8859-1', '*']],
];
}
}

View File

@ -1025,7 +1025,7 @@ class RequestTest extends TestCase
// forwarded for with remote IPv6 addr not trusted
[['1620:0:1cfe:face:b00c::3'], '1620:0:1cfe:face:b00c::3', '2620:0:1cfe:face:b00c::3', null],
// forwarded for with remote IPv6 addr trusted
[['2620:0:1cfe:face:b00c::3'], '1620:0:1cfe:face:b00c::3', '2620:0:1cfe:face:b00c::3', array ('1620:0:1cfe:face:b00c::3')],
[['2620:0:1cfe:face:b00c::3'], '1620:0:1cfe:face:b00c::3', '2620:0:1cfe:face:b00c::3', ['1620:0:1cfe:face:b00c::3']],
// forwarded for with remote IPv6 range trusted
[['88.88.88.88'], '2a01:198:603:0:396e:4789:8e99:890f', '88.88.88.88', ['2a01:198:603:0::/65']],