/** * @param $cars * @depends testArrayApply */ public function testDtoApply($cars) { $model = Cars::make($cars); $this->assertEquals(count($this->data), count($model->toArray())); foreach ($this->data as $key => $value) { $this->assertEquals($value, $model->toArray()[Str::camel($key)]); } }