ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ColorTest Class Reference
+ Inheritance diagram for ColorTest:
+ Collaboration diagram for ColorTest:

Public Member Functions

 setUp ()
 
 testGetRed ()
 providerColorGetRed More...
 
 providerColorGetRed ()
 
 testGetGreen ()
 providerColorGetGreen More...
 
 providerColorGetGreen ()
 
 testGetBlue ()
 providerColorGetBlue More...
 
 providerColorGetBlue ()
 
 testChangeBrightness ()
 providerColorChangeBrightness More...
 
 providerColorChangeBrightness ()
 

Detailed Description

Definition at line 6 of file ColorTest.php.

Member Function Documentation

◆ providerColorChangeBrightness()

ColorTest::providerColorChangeBrightness ( )

Definition at line 76 of file ColorTest.php.

77  {
78  return new testDataFileIterator('rawTestData/Style/ColorChangeBrightness.data');
79  }

◆ providerColorGetBlue()

ColorTest::providerColorGetBlue ( )

Definition at line 60 of file ColorTest.php.

61  {
62  return new testDataFileIterator('rawTestData/Style/ColorGetBlue.data');
63  }

◆ providerColorGetGreen()

ColorTest::providerColorGetGreen ( )

Definition at line 44 of file ColorTest.php.

45  {
46  return new testDataFileIterator('rawTestData/Style/ColorGetGreen.data');
47  }

◆ providerColorGetRed()

ColorTest::providerColorGetRed ( )

Definition at line 28 of file ColorTest.php.

29  {
30  return new testDataFileIterator('rawTestData/Style/ColorGetRed.data');
31  }

◆ setUp()

ColorTest::setUp ( )

Definition at line 9 of file ColorTest.php.

References defined.

10  {
11  if (!defined('PHPEXCEL_ROOT')) {
12  define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
13  }
14  require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
15  }
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27

◆ testChangeBrightness()

ColorTest::testChangeBrightness ( )

providerColorChangeBrightness

Definition at line 68 of file ColorTest.php.

References $result, and array.

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  }
$result
Create styles array
The data for the language used.

◆ testGetBlue()

ColorTest::testGetBlue ( )

providerColorGetBlue

Definition at line 52 of file ColorTest.php.

References $result, and array.

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  }
$result
Create styles array
The data for the language used.

◆ testGetGreen()

ColorTest::testGetGreen ( )

providerColorGetGreen

Definition at line 36 of file ColorTest.php.

References $result, and array.

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  }
$result
Create styles array
The data for the language used.

◆ testGetRed()

ColorTest::testGetRed ( )

providerColorGetRed

Definition at line 20 of file ColorTest.php.

References $result, and array.

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  }
$result
Create styles array
The data for the language used.

The documentation for this class was generated from the following file: