Browse Source

Data providers do not need to be static.

Mark Story 12 years ago
parent
commit
5733364159

+ 1 - 1
tests/TestCase/Database/Type/DateTimeTypeTest.php

@@ -74,7 +74,7 @@ class DateTimeTypeTest extends TestCase {
  *
  * @return array
  */
-	public static function marshallProvider() {
+	public function marshallProvider() {
 		return [
 			// invalid types.
 			[null, null],

+ 1 - 1
tests/TestCase/Database/Type/DateTypeTest.php

@@ -78,7 +78,7 @@ class DateTypeTest extends TestCase {
  *
  * @return array
  */
-	public static function marshallProvider() {
+	public function marshallProvider() {
 		$date = new \DateTime('@1392387900');
 		$date->setTime(0, 0, 0);