Index: trunk/phase3/tests/phpunit/includes/ArticleTest.php |
— | — | @@ -19,8 +19,8 @@ |
20 | 20 | |
21 | 21 | } |
22 | 22 | |
23 | | - function testImplementsGetMagic() { |
24 | | - $this->assertEquals( -1, $this->article->mCounter, "Article __get magic" ); |
| 23 | + function testImplementsGetMagic() { |
| 24 | + $this->assertEquals( false, $this->article->mLatest, "Article __get magic" ); |
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
— | — | @@ -28,16 +28,16 @@ |
29 | 29 | */ |
30 | 30 | function testImplementsSetMagic() { |
31 | 31 | |
32 | | - $this->article->mCounter = 2; |
33 | | - $this->assertEquals( 2, $this->article->mCounter, "Article __set magic" ); |
| 32 | + $this->article->mLatest = 2; |
| 33 | + $this->assertEquals( 2, $this->article->mLatest, "Article __set magic" ); |
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
37 | 37 | * @depends testImplementsSetMagic |
38 | 38 | */ |
39 | 39 | function testImplementsCallMagic() { |
40 | | - $this->article->mCounter = 33; |
41 | | - $this->assertEquals( 33, $this->article->getCount(), "Article __call magic" ); |
| 40 | + $this->article->mLatest = 33; |
| 41 | + $this->assertEquals( 33, $this->article->getLatest(), "Article __call magic" ); |
42 | 42 | } |
43 | 43 | |
44 | 44 | function testGetOrSetOnNewProperty() { |