public function test_to_array_include_root()
 {
     ActiveRecord\ArraySerializer::$include_root = true;
     $book = Book::find(1);
     $array = $book->to_array();
     $book_attributes = array('book' => $book->attributes());
     $this->assert_equals($book_attributes, $array);
 }
 public function testToArrayIncludeRoot()
 {
     ActiveRecord\ArraySerializer::$includeRoot = true;
     $book = Book::find(1);
     $array = $book->toArray();
     $bookAttributes = array('book' => $book->attributes());
     $this->assertEquals($bookAttributes, $array);
 }