public function testFromArray() { $article = new Article(); $article->fromArray(array('title' => 'foo', 'content' => 'bar')); $this->assertSame('foo', $article->getTitle()); $this->assertSame('bar', $article->getContent()); }