Example #1
0
 public function testToArray()
 {
     $article = new Article();
     $article->setTitle('foo');
     $article->setContent('bar');
     $this->assertSame(array('id' => null, 'title' => 'foo', 'slug' => null, 'content' => 'bar', 'source' => null, 'isActive' => true, 'score' => null, 'date' => null, 'category' => null), $article->toArray());
 }