diff options
author | Arron Woods <aw@chartblocks.com> | 2015-03-02 16:55:55 +0000 |
---|---|---|
committer | Arron Woods <aw@chartblocks.com> | 2015-03-02 16:55:55 +0000 |
commit | e267d21427aee0ab39169933dfbf0b7fbbe5bc4f (patch) | |
tree | 39ab2270729635647424a48e47353bf850f1b73d /tests | |
parent | 8f5607a53e06c6d9567800dfe7e3cb94511634df (diff) | |
download | php-ssrs-1.0.5.zip php-ssrs-1.0.5.tar.gz php-ssrs-1.0.5.tar.bz2 |
Pass cache_wsdl_path down to client construct1.0.5
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/library/SSRSTest/ReportTest.php | 18 |
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'); } - } |