/** @test **/ public function it_converts_object_to_array() { $expected = [['id' => 1, 'name' => 'left', 'value' => 'up'], ['id' => 2, 'name' => 'right', 'value' => 'down']]; $this->assertSame($expected, $this->rs->toArray()); }