summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/library/SSRSTest/ReportTest.php18
1 files changed, 15 insertions, 3 deletions
diff --git a/tests/library/SSRSTest/ReportTest.php b/tests/library/SSRSTest/ReportTest.php
index 4c79897..9071742 100755
--- a/tests/library/SSRSTest/ReportTest.php
+++ b/tests/library/SSRSTest/ReportTest.php
@@ -20,6 +20,19 @@ class ReportTest extends \PHPUnit_Framework_TestCase {
$this->assertEquals($options['username'], $ssrs->getUsername());
$this->assertEquals($options['password'], $ssrs->getPassword());
+ $this->assertArrayNotHasKey('password', $ssrs->options, 'Password should not remain in options');
+ }
+
+ public function testSetOptions() {
+ $options = array(
+ 'cache_wsdl_path' => '/opt/test',
+ );
+
+ $ssrs = new Report('http://test', $options);
+ $this->assertEquals('/opt/test', $ssrs->options['cache_wsdl_path']);
+
+ $ssrs->setOptions(array());
+ $this->assertEquals(null, $ssrs->options['cache_wsdl_path']);
}
public function testGetSoapServiceReturnsNTLMByDefault() {
@@ -143,7 +156,7 @@ class ReportTest extends \PHPUnit_Framework_TestCase {
'Format' => 'HTML4.0',
'DeviceInfo' => '<DeviceInfo></DeviceInfo>',
'PaginationMode' => 'Estimate'
- )));
+ )));
$ssrs = new Report('http://test/ReportServer');
$ssrs->setSoapExecution($soapMock)
@@ -159,7 +172,7 @@ class ReportTest extends \PHPUnit_Framework_TestCase {
'Format' => 'CSV',
'DeviceInfo' => '<DeviceInfo><Toolbar>true</Toolbar><Recurse><Test>works</Test></Recurse></DeviceInfo>',
'PaginationMode' => 'Another'
- )));
+ )));
$ssrs = new Report('http://test/ReportServer');
$ssrs->setSoapExecution($soapMock)
@@ -168,5 +181,4 @@ class ReportTest extends \PHPUnit_Framework_TestCase {
$result = $ssrs->render('CSV', array('Toolbar' => true, 'Recurse' => array('Test' => 'works')), 'Another');
}
-
}