1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
<?php
require_once 'testDataFileIterator.php';
class ColorTest extends PHPUnit_Framework_TestCase {
public function setUp() { if (!defined('PHPEXCEL_ROOT')) { define('PHPEXCEL_ROOT', APPLICATION_PATH . '/'); } require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); }
/** * @dataProvider providerColorGetRed */ public function testGetRed() { $args = func_get_args(); $expectedResult = array_pop($args); $result = call_user_func_array(array('PHPExcel_Style_Color','getRed'),$args); $this->assertEquals($expectedResult, $result); }
public function providerColorGetRed() { return new testDataFileIterator('rawTestData/Style/ColorGetRed.data'); }
/** * @dataProvider providerColorGetGreen */ public function testGetGreen() { $args = func_get_args(); $expectedResult = array_pop($args); $result = call_user_func_array(array('PHPExcel_Style_Color','getGreen'),$args); $this->assertEquals($expectedResult, $result); }
public function providerColorGetGreen() { return new testDataFileIterator('rawTestData/Style/ColorGetGreen.data'); }
/** * @dataProvider providerColorGetBlue */ public function testGetBlue() { $args = func_get_args(); $expectedResult = array_pop($args); $result = call_user_func_array(array('PHPExcel_Style_Color','getBlue'),$args); $this->assertEquals($expectedResult, $result); }
public function providerColorGetBlue() { return new testDataFileIterator('rawTestData/Style/ColorGetBlue.data'); }
/** * @dataProvider providerColorChangeBrightness */ public function testChangeBrightness() { $args = func_get_args(); $expectedResult = array_pop($args); $result = call_user_func_array(array('PHPExcel_Style_Color','changeBrightness'),$args); $this->assertEquals($expectedResult, $result); }
public function providerColorChangeBrightness() { return new testDataFileIterator('rawTestData/Style/ColorChangeBrightness.data'); }
}
|