Dear IP-formation.
Emmanuel ROY authored on 15/04/2015 14:45:541 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,28 @@ |
1 |
+<?php |
|
2 |
+require_once '../public/scriptPHP/cookies.php'; |
|
3 |
+ |
|
4 |
+class Test extends PHPUnit_Framework_TestCase |
|
5 |
+{ |
|
6 |
+ //declaration de variables pour les fonctions de tests |
|
7 |
+ public $essai; |
|
8 |
+ |
|
9 |
+ //fonction constructeur du test (public) |
|
10 |
+ public function Test() |
|
11 |
+ { |
|
12 |
+ |
|
13 |
+ } |
|
14 |
+ |
|
15 |
+ //fonction de testing proprement dite |
|
16 |
+ public function testOne() |
|
17 |
+ { |
|
18 |
+ $essai = ajouterZero(1); |
|
19 |
+ |
|
20 |
+ $this->assertEquals('01', $essai); |
|
21 |
+ $this->assertNotEquals(10, $essai); |
|
22 |
+ |
|
23 |
+ } |
|
24 |
+ |
|
25 |
+} |
|
26 |
+ |
|
27 |
+ |
|
28 |
+?> |
|
0 | 29 |
\ No newline at end of file |