function testGetVersion() { $v = new DocumentationViewer(); $response = $v->handleRequest(new SS_HTTPRequest('GET', 'DocumentationViewerTests/en/2.4')); $this->assertEquals('2.4', $v->getVersion()); $response = $v->handleRequest(new SS_HTTPRequest('GET', 'DocumentationViewerTests/en/1')); $this->assertEquals('1', $v->getVersion()); $response = $v->handleRequest(new SS_HTTPRequest('GET', 'DocumentationViewerTests/en/3.0')); $this->assertEquals('3.0', $v->getVersion()); }