Permalink
Browse files

Added tests

  • Loading branch information...
1 parent c83ce7f commit 8ffbe25fff1dcfb3367362d149817f0826285224 @iwalz committed Jan 5, 2013
@@ -215,5 +215,9 @@ public function testHydratorClassMethodsWithServiceManager()
{
$hydrator = new ClassMethods(false);
$datas = $hydrator->extract($this->classMethodsInvalidParameter);
+
+ $this->assertTrue($datas['hasBar']);
+ $this->assertEquals('Bar', $datas['foo']);
+ $this->assertFalse($datas['isBla']);
}
}
@@ -15,4 +15,29 @@ public function hasAlias($alias)
{
return $alias;
}
+
+ public function getTest($foo)
+ {
+ return $foo;
+ }
+
+ public function isTest($bar)
+ {
+ return $bar;
+ }
+
+ public function hasBar()
+ {
+ return true;
+ }
+
+ public function getFoo()
+ {
+ return "Bar";
+ }
+
+ public function isBla()
+ {
+ return false;
+ }
}

0 comments on commit 8ffbe25

Please sign in to comment.