1 | <?php |
||
33 | class FileViewerTest extends PHPUnit_Framework_TestCase |
||
34 | { |
||
35 | |||
36 | function testConstruction() |
||
41 | |||
42 | /* |
||
43 | function testParseQueryString() |
||
44 | { |
||
45 | $querystring = '?/QH4X9sbRgRyPApgS/Ci7emeihjcJ3WdNyDMz7vspLq5CeT3QEb5IE9SMBUEKHHrnckM/MountKosciuszko_frontpage.jpg'; |
||
46 | $fileviewer = new FileViewer(new FakeFileViewerHandler); |
||
47 | $fileviewer->parseQueryString($querystring); |
||
48 | $this->assertEquals('QH4X9sbRgRyPApgS', $fileviewer->public_key); |
||
49 | $this->assertEquals('Ci7emeihjcJ3WdNyDMz7vspLq5CeT3QEb5IE9SMBUEKHHrnckM', $fileviewer->file_key); |
||
50 | $this->assertEquals('MountKosciuszko_frontpage.jpg', $fileviewer->file_type); |
||
51 | } |
||
52 | */ |
||
53 | |||
54 | /* |
||
55 | function testFetch() |
||
56 | { |
||
57 | $querystring = '?/QH4X9sbRgRyPApgS/Ci7emeihjcJ3WdNyDMz7vspLq5CeT3QEb5IE9SMBUEKHHrnckM/MountKosciuszko_frontpage.jpg'; |
||
58 | $fileviewer = new FileViewer(); |
||
59 | $fileviewer->fetch($querystring); |
||
60 | } |
||
61 | */ |
||
62 | } |
||
63 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.