public function testShouldCastToString() { $model = new Model(); $this->assertEquals($model->toJson(), (string) $model); }