1 | <?php |
||
8 | class CalculationTest extends \PHPUnit_Framework_TestCase |
||
9 | { |
||
10 | public function setUp() |
||
14 | |||
15 | /** |
||
16 | * @dataProvider providerBinaryComparisonOperation |
||
17 | * |
||
18 | * @param mixed $formula |
||
19 | * @param mixed $expectedResultExcel |
||
20 | * @param mixed $expectedResultOpenOffice |
||
21 | */ |
||
22 | public function testBinaryComparisonOperation($formula, $expectedResultExcel, $expectedResultOpenOffice) |
||
32 | |||
33 | public function providerBinaryComparisonOperation() |
||
37 | |||
38 | /** |
||
39 | * @dataProvider providerGetFunctions |
||
40 | * |
||
41 | * @param string $category |
||
42 | * @param array|string $functionCall |
||
43 | * @param string $argumentCount |
||
44 | */ |
||
45 | public function testGetFunctions($category, $functionCall, $argumentCount) |
||
46 | { |
||
47 | $this->assertInternalType('callable', $functionCall); |
||
48 | } |
||
49 | |||
50 | public function providerGetFunctions() |
||
51 | { |
||
52 | return Calculation::getInstance()->getFunctions(); |
||
53 | } |
||
54 | |||
55 | public function testIsImplemented() |
||
63 | |||
64 | /** |
||
65 | * @dataProvider providerCanLoadAllSupportedLocales |
||
66 | * |
||
67 | * @param string $locale |
||
68 | */ |
||
69 | public function testCanLoadAllSupportedLocales($locale) |
||
74 | |||
75 | public function providerCanLoadAllSupportedLocales() |
||
98 | } |
||
99 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.