public function test() { $bar = new Bar(); $bar->setMessage('foobar'); $this->assertEquals('foobar', $bar->getMessage()); $this->assertEquals('foobar', $bar->message); }