Exemplo n.º 1
0
 /**
  * Create a Foo
  *
  * @return Foo
  **/
 private function createFoo()
 {
     $foo = new Foo();
     return $foo->setFoo('foo')->setBar('bar');
 }
 public function testMagicMethods()
 {
     $foo = new Foo();
     $foo->setFoo('bar');
     $this->assertEquals('bar', $foo->getFoo());
 }