ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ColorTest.php
Go to the documentation of this file.
1 <?php
2 
3 
4 require_once 'testDataFileIterator.php';
5 
7 {
8 
9  public function setUp()
10  {
11  if (!defined('PHPEXCEL_ROOT')) {
12  define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
13  }
14  require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
15  }
16 
20  public function testGetRed()
21  {
22  $args = func_get_args();
23  $expectedResult = array_pop($args);
24  $result = call_user_func_array(array('PHPExcel_Style_Color','getRed'),$args);
25  $this->assertEquals($expectedResult, $result);
26  }
27 
28  public function providerColorGetRed()
29  {
30  return new testDataFileIterator('rawTestData/Style/ColorGetRed.data');
31  }
32 
36  public function testGetGreen()
37  {
38  $args = func_get_args();
39  $expectedResult = array_pop($args);
40  $result = call_user_func_array(array('PHPExcel_Style_Color','getGreen'),$args);
41  $this->assertEquals($expectedResult, $result);
42  }
43 
44  public function providerColorGetGreen()
45  {
46  return new testDataFileIterator('rawTestData/Style/ColorGetGreen.data');
47  }
48 
52  public function testGetBlue()
53  {
54  $args = func_get_args();
55  $expectedResult = array_pop($args);
56  $result = call_user_func_array(array('PHPExcel_Style_Color','getBlue'),$args);
57  $this->assertEquals($expectedResult, $result);
58  }
59 
60  public function providerColorGetBlue()
61  {
62  return new testDataFileIterator('rawTestData/Style/ColorGetBlue.data');
63  }
64 
68  public function testChangeBrightness()
69  {
70  $args = func_get_args();
71  $expectedResult = array_pop($args);
72  $result = call_user_func_array(array('PHPExcel_Style_Color','changeBrightness'),$args);
73  $this->assertEquals($expectedResult, $result);
74  }
75 
77  {
78  return new testDataFileIterator('rawTestData/Style/ColorChangeBrightness.data');
79  }
80 
81 }
providerColorGetRed()
Definition: ColorTest.php:28
$result
providerColorGetGreen()
Definition: ColorTest.php:44
testGetBlue()
providerColorGetBlue
Definition: ColorTest.php:52
testChangeBrightness()
providerColorChangeBrightness
Definition: ColorTest.php:68
providerColorChangeBrightness()
Definition: ColorTest.php:76
providerColorGetBlue()
Definition: ColorTest.php:60
testGetGreen()
providerColorGetGreen
Definition: ColorTest.php:36
Create styles array
The data for the language used.
testGetRed()
providerColorGetRed
Definition: ColorTest.php:20
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27