Skip to content

Commit

Permalink
Correct expected for testSetUtf() (#11223)
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 authored and wilsonge committed Aug 28, 2016
1 parent 028e33d commit ccfafcd
Showing 1 changed file with 8 additions and 1 deletion.
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 ccfafcd

Please sign in to comment.