/** * Test for seconds extraction from date. * * @return void * * @since 12.1 */ public function test__toStringSecond() { $q = new JDatabaseQueryInspector($this->dbo); $q->select($q->second($q->quoteName('col')))->from('table'); $this->assertThat((string) $q, $this->equalTo(PHP_EOL . "SELECT SECOND(`col`)" . PHP_EOL . "FROM table")); }