コード例 #1
0
 /**
  * Test for the castAsChar method.
  *
  * @return  void
  *
  * @since   11.3
  */
 public function testCastAsChar()
 {
     $q = new JDatabaseQueryPostgresql($this->dbo);
     $this->assertEquals('123::text', $q->castAsChar('123'));
 }
コード例 #2
0
 /**
  * Test for the castAsChar method.
  *
  * @return  void
  *
  * @since   11.3
  */
 public function testCastAsChar()
 {
     $q = new JDatabaseQueryPostgresql($this->dbo);
     $this->assertThat($q->castAsChar('123'), $this->equalTo('123::text'), 'The default castAsChar behaviour is quote the input.');
 }