diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-04 17:50:34 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-04 17:50:34 +0200 |
commit | 46b77928f746a4231d064774b5b67fd892c7ce86 (patch) | |
tree | e3ea690b3f0def1744ddae758923cf92171ef985 /vendor/symfony/intl/Symfony/Component/Intl/Tests/Collator/AbstractCollatorTest.php | |
parent | 68abd9c71b1d2f7bb2e9d21819584d1d15005b25 (diff) | |
download | wallabag-46b77928f746a4231d064774b5b67fd892c7ce86.tar.gz wallabag-46b77928f746a4231d064774b5b67fd892c7ce86.tar.zst wallabag-46b77928f746a4231d064774b5b67fd892c7ce86.zip |
rm vendor
Diffstat (limited to 'vendor/symfony/intl/Symfony/Component/Intl/Tests/Collator/AbstractCollatorTest.php')
-rw-r--r-- | vendor/symfony/intl/Symfony/Component/Intl/Tests/Collator/AbstractCollatorTest.php | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Tests/Collator/AbstractCollatorTest.php b/vendor/symfony/intl/Symfony/Component/Intl/Tests/Collator/AbstractCollatorTest.php deleted file mode 100644 index 08f3a566..00000000 --- a/vendor/symfony/intl/Symfony/Component/Intl/Tests/Collator/AbstractCollatorTest.php +++ /dev/null | |||
@@ -1,62 +0,0 @@ | |||
1 | <?php | ||
2 | |||
3 | /* | ||
4 | * This file is part of the Symfony package. | ||
5 | * | ||
6 | * (c) Fabien Potencier <fabien@symfony.com> | ||
7 | * | ||
8 | * For the full copyright and license information, please view the LICENSE | ||
9 | * file that was distributed with this source code. | ||
10 | */ | ||
11 | |||
12 | namespace Symfony\Component\Intl\Tests\Collator; | ||
13 | |||
14 | use Symfony\Component\Intl\Collator\Collator; | ||
15 | use Symfony\Component\Intl\Locale; | ||
16 | |||
17 | /** | ||
18 | * Test case for Collator implementations. | ||
19 | * | ||
20 | * @author Bernhard Schussek <bschussek@gmail.com> | ||
21 | */ | ||
22 | abstract class AbstractCollatorTest extends \PHPUnit_Framework_TestCase | ||
23 | { | ||
24 | /** | ||
25 | * @dataProvider asortProvider | ||
26 | */ | ||
27 | public function testAsort($array, $sortFlag, $expected) | ||
28 | { | ||
29 | $collator = $this->getCollator('en'); | ||
30 | $collator->asort($array, $sortFlag); | ||
31 | $this->assertSame($expected, $array); | ||
32 | } | ||
33 | |||
34 | public function asortProvider() | ||
35 | { | ||
36 | return array( | ||
37 | /* array, sortFlag, expected */ | ||
38 | array( | ||
39 | array('a', 'b', 'c'), | ||
40 | Collator::SORT_REGULAR, | ||
41 | array('a', 'b', 'c'), | ||
42 | ), | ||
43 | array( | ||
44 | array('c', 'b', 'a'), | ||
45 | Collator::SORT_REGULAR, | ||
46 | array(2 => 'a', 1 => 'b', 0 => 'c'), | ||
47 | ), | ||
48 | array( | ||
49 | array('b', 'c', 'a'), | ||
50 | Collator::SORT_REGULAR, | ||
51 | array(2 => 'a', 0 => 'b', 1 => 'c'), | ||
52 | ), | ||
53 | ); | ||
54 | } | ||
55 | |||
56 | /** | ||
57 | * @param string $locale | ||
58 | * | ||
59 | * @return \Collator | ||
60 | */ | ||
61 | abstract protected function getCollator($locale); | ||
62 | } | ||