-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ protected function setUp() | |
$OCIBindChangeStatus = false; | ||
|
||
$this->oci = m::mock(new \TestOCIStub('', null, null, array(\PDO::ATTR_CASE => \PDO::CASE_LOWER))); | ||
$this->stmt = m::mock(new \TestOCIStatementStub('oci statement', $this->oci, '', array('fake'=>'attribute'))); | ||
$this->stmt = m::mock(new \TestOCIStatementStub('oci8 statement', $this->oci, '', array('fake'=>'attribute'))); | ||
|
||
//fake result sets for all the fetch calls | ||
$this->resultUpperArray = array('FNAME' => 'Test', 'LNAME' => 'Testerson', 'EMAIL' => '[email protected]'); | ||
|
@@ -123,7 +123,7 @@ public function testBindColumnWithInvalidDataType () | |
{ | ||
$stmt = new \TestOCIStatementStub('oci8 statement', $this->oci, 'sql', array()); | ||
$holder = ""; | ||
$stmt->bindColumn(1, $holder, \PDO::PARAM_INPUT_OUTPUT); | ||
$stmt->bindColumn(1, $holder, -5); | ||
} | ||
|
||
public function testBindColumnSuccess () | ||
|
@@ -471,5 +471,10 @@ public function testSetFetchMode () | |
{ | ||
$this->assertTrue($this->stmt->setFetchMode(\PDO::FETCH_CLASS)); | ||
} | ||
|
||
public function testGetOCIResource() | ||
{ | ||
$this->assertEquals('oci8 statement', $this->stmt->getOCIResource()); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters