Skip to content

Commit

Permalink
Correct expected for testSetUtf()
Browse files Browse the repository at this point in the history
Correction to the unit test after PR `Fix postgresql driver setUtf() method` #10787
  • Loading branch information
photodude committed Jul 20, 2016
1 parent 3dd50b4 commit 2032ac5
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,14 @@ public function testSqlValue()
*/
public function testSetUtf()
{
$this->assertEquals(0, self::$driver->setUtf());
if (!function_exists('pg_set_client_encoding'))
{
$this->assertEquals(-1, self::$driver->setUtf());
}
else
{
$this->assertEquals(0, self::$driver->setUtf());
}
}

/**
Expand Down

0 comments on commit 2032ac5

Please sign in to comment.