Permalink
Browse files

fix Curl tests for options setting.

  • Loading branch information...
1 parent ff59bc6 commit 94ae23ba38a17e40aa1e4d777fe0eb6bb6d7cc59 @gwoo gwoo committed Jul 22, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/cases/net/socket/CurlTest.php
View
6 tests/cases/net/socket/CurlTest.php
@@ -141,15 +141,15 @@ public function testSettingOfOptions() {
}
public function testSettingOfOptionsInConfig() {
- $this->_testConfig['options'] = array('DummyFlag'=> 'Dummy Value');
- $stream = new Curl($this->_testConfig);
+ $config = $this->_testConfig + array('options' => array('DummyFlag' => 'Dummy Value'));
+ $stream = new Curl($config);
$stream->open();
$this->assertEqual('Dummy Value', $stream->options['DummyFlag']);
}
public function testSettingOfOptionsInOpen() {
$stream = new Curl($this->_testConfig);
- $stream->open(array('options'=>array('DummyFlag'=> 'Dummy Value')));
+ $stream->open(array('options' => array('DummyFlag' => 'Dummy Value')));
$this->assertEqual('Dummy Value', $stream->options['DummyFlag']);
}

0 comments on commit 94ae23b

Please sign in to comment.