Index: trunk/phase3/tests/phpunit/includes/Providers.php |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | class MediaWikiProvide { |
13 | 13 | |
14 | 14 | /* provide an array of numbers from 1 up to @param $num */ |
15 | | - private function createProviderUpTo( $num ) { |
| 15 | + private static function createProviderUpTo( $num ) { |
16 | 16 | $ret = array(); |
17 | 17 | for( $i=1; $i<=$num;$i++ ) { |
18 | 18 | $ret[] = array( $i ); |
— | — | @@ -20,20 +20,20 @@ |
21 | 21 | } |
22 | 22 | |
23 | 23 | /* array of months numbers (as an integer) */ |
24 | | - public function Months() { |
25 | | - return $this->createProviderUpTo( 12 ); |
| 24 | + public static function Months() { |
| 25 | + return self::createProviderUpTo( 12 ); |
26 | 26 | } |
27 | 27 | |
28 | 28 | /* array of days numbers (as an integer) */ |
29 | | - public function Days() { |
30 | | - return $this->createProviderUpTo( 31 ); |
| 29 | + public static function Days() { |
| 30 | + return self::createProviderUpTo( 31 ); |
31 | 31 | } |
32 | 32 | |
33 | | - public function DaysMonths() { |
| 33 | + public static function DaysMonths() { |
34 | 34 | $ret = array(); |
35 | 35 | |
36 | | - $months = $this->Months(); |
37 | | - $days = $this->Days(); |
| 36 | + $months = self::Months(); |
| 37 | + $days = self::Days(); |
38 | 38 | foreach( $months as $month) { |
39 | 39 | foreach( $days as $day ) { |
40 | 40 | $ret[] = array( $day[0], $month[0] ); |