コード例 #1
0
ファイル: QueryTest.php プロジェクト: jbanety/database
 /**
  * Test for year extraction from date.
  *
  * @return  void
  *
  * @since   1.0
  */
 public function test__toStringYear()
 {
     $this->instance->select($this->instance->year($this->instance->quoteName('col')))->from('table');
     $this->assertThat((string) $this->instance, $this->equalTo(PHP_EOL . "SELECT YEAR(`col`)" . PHP_EOL . "FROM table"));
 }