Vous êtes connecté en tant que anonymous Se Deconnecter
Browse code

Application modulaire fonctionnelle !

Emmanuel ROY authored on 12/08/2019 15:10:25
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,52 +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\Translation\Tests;
13
-
14
-use PHPUnit\Framework\TestCase;
15
-use Symfony\Component\Translation\Interval;
16
-
17
-/**
18
- * @group legacy
19
- */
20
-class IntervalTest extends TestCase
21
-{
22
-    /**
23
-     * @dataProvider getTests
24
-     */
25
-    public function testTest($expected, $number, $interval)
26
-    {
27
-        $this->assertEquals($expected, Interval::test($number, $interval));
28
-    }
29
-
30
-    /**
31
-     * @expectedException \Symfony\Component\Translation\Exception\InvalidArgumentException
32
-     */
33
-    public function testTestException()
34
-    {
35
-        Interval::test(1, 'foobar');
36
-    }
37
-
38
-    public function getTests()
39
-    {
40
-        return [
41
-            [true, 3, '{1,2, 3 ,4}'],
42
-            [false, 10, '{1,2, 3 ,4}'],
43
-            [false, 3, '[1,2]'],
44
-            [true, 1, '[1,2]'],
45
-            [true, 2, '[1,2]'],
46
-            [false, 1, ']1,2['],
47
-            [false, 2, ']1,2['],
48
-            [true, log(0), '[-Inf,2['],
49
-            [true, -log(0), '[-2,+Inf]'],
50
-        ];
51
-    }
52
-}
Browse code

initial commit

Emmanuel ROY authored on 09/08/2019 08:39:02
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,52 @@
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\Translation\Tests;
13
+
14
+use PHPUnit\Framework\TestCase;
15
+use Symfony\Component\Translation\Interval;
16
+
17
+/**
18
+ * @group legacy
19
+ */
20
+class IntervalTest extends TestCase
21
+{
22
+    /**
23
+     * @dataProvider getTests
24
+     */
25
+    public function testTest($expected, $number, $interval)
26
+    {
27
+        $this->assertEquals($expected, Interval::test($number, $interval));
28
+    }
29
+
30
+    /**
31
+     * @expectedException \Symfony\Component\Translation\Exception\InvalidArgumentException
32
+     */
33
+    public function testTestException()
34
+    {
35
+        Interval::test(1, 'foobar');
36
+    }
37
+
38
+    public function getTests()
39
+    {
40
+        return [
41
+            [true, 3, '{1,2, 3 ,4}'],
42
+            [false, 10, '{1,2, 3 ,4}'],
43
+            [false, 3, '[1,2]'],
44
+            [true, 1, '[1,2]'],
45
+            [true, 2, '[1,2]'],
46
+            [false, 1, ']1,2['],
47
+            [false, 2, ']1,2['],
48
+            [true, log(0), '[-Inf,2['],
49
+            [true, -log(0), '[-2,+Inf]'],
50
+        ];
51
+    }
52
+}