Permalink
Browse files

Renaming toSQL to toSql

  • Loading branch information...
1 parent dbbc4f8 commit 0fb8e47efc13002b20b00ad3c5ca3e8ab28de58e @chdemko committed Dec 11, 2011
Showing with 6 additions and 6 deletions.
  1. +3 −3 libraries/joomla/utilities/date.php
  2. +3 −3 tests/suite/joomla/utilities/JDateTest.php
@@ -523,11 +523,11 @@ public function toISO8601($local = false)
*
* @link http://dev.mysql.com/doc/refman/5.0/en/datetime.html
* @since 11.1
- * @deprecated 12.1 Use JDate::toSQL()
+ * @deprecated 12.1 Use JDate::toSql()
*/
public function toMySQL($local = false)
{
- JLog::add('JDate::toMySQL() is deprecated. Use JDate::toSQL() instead.', JLog::WARNING, 'deprecated');
+ JLog::add('JDate::toMySQL() is deprecated. Use JDate::toSql() instead.', JLog::WARNING, 'deprecated');
return $this->format('Y-m-d H:i:s', $local, false);
}
@@ -542,7 +542,7 @@ public function toMySQL($local = false)
* @link http://dev.mysql.com/doc/refman/5.0/en/datetime.html
* @since 11.4
*/
- public function toSQL($local = false, $dbo = null)
+ public function toSql($local = false, $dbo = null)
{
if ($dbo === null)
{
@@ -965,7 +965,7 @@ public function testToMySQL($tz, $setTime, $local, $expected)
}
/**
- * Testing toSQL
+ * Testing toSql
*
* @param mixed $tz Which time zone? (can be string or numeric
* @param string $setTime What time should be set?
@@ -977,7 +977,7 @@ public function testToMySQL($tz, $setTime, $local, $expected)
* @dataProvider casesToMySQL
* @since 11.3
*/
- public function testToSQL($tz, $setTime, $local, $expected)
+ public function testToSql($tz, $setTime, $local, $expected)
{
if (is_null($tz))
{
@@ -989,7 +989,7 @@ public function testToSQL($tz, $setTime, $local, $expected)
}
$this->assertThat(
- $testJDate->toSQL($local),
+ $testJDate->toSql($local),
$this->equalTo($expected)
);
}

0 comments on commit 0fb8e47

Please sign in to comment.