1 | <?php |
||
11 | class IOFactoryTest extends PHPUnit_Framework_TestCase |
||
12 | { |
||
13 | /** |
||
14 | * @dataProvider providerCreateWriter |
||
15 | * |
||
16 | * @param string $name |
||
17 | * @param string $expected |
||
18 | */ |
||
19 | public function testCreateWriter($name, $expected) |
||
25 | |||
26 | public function providerCreateWriter() |
||
39 | |||
40 | public function testRegisterWriter() |
||
47 | |||
48 | /** |
||
49 | * @dataProvider providerCreateReader |
||
50 | * |
||
51 | * @param string $name |
||
52 | * @param string $expected |
||
53 | */ |
||
54 | public function testCreateReader($name, $expected) |
||
59 | |||
60 | public function providerCreateReader() |
||
73 | |||
74 | public function testRegisterReader() |
||
80 | |||
81 | /** |
||
82 | * @dataProvider providerIdentify |
||
83 | * |
||
84 | * @param string $file |
||
85 | * @param string $expectedName |
||
86 | * @param string $expectedClass |
||
87 | */ |
||
88 | public function testIdentify($file, $expectedName, $expectedClass) |
||
93 | |||
94 | /** |
||
95 | * @dataProvider providerIdentify |
||
96 | * |
||
97 | * @param string $file |
||
98 | * @param string $expectedName |
||
99 | * @param string $expectedClass |
||
100 | */ |
||
101 | public function testCreateReaderForFile($file, $expectedName, $expectedClass) |
||
106 | |||
107 | public function providerIdentify() |
||
119 | |||
120 | /** |
||
121 | * @expectedException \InvalidArgumentException |
||
122 | */ |
||
123 | public function testIdentifyNonExistingFileThrowException() |
||
127 | |||
128 | /** |
||
129 | * @expectedException \InvalidArgumentException |
||
130 | */ |
||
131 | public function testIdentifyExistingDirectoryThrowExceptions() |
||
135 | |||
136 | /** |
||
137 | * @expectedException \PhpOffice\PhpSpreadsheet\Writer\Exception |
||
138 | */ |
||
139 | public function testRegisterInvalidWriter() |
||
143 | |||
144 | /** |
||
145 | * @expectedException \PhpOffice\PhpSpreadsheet\Reader\Exception |
||
146 | */ |
||
147 | public function testRegisterInvalidReader() |
||
151 | } |
||
152 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.