123456789101112131415161718192021222324252627282930 |
- <?php
- // Copyright 2019 Hackware SpA <human@hackware.cl>
- // "Hackware Web Services Core" is released under the MIT License terms.
- namespace Hawese\Tests;
- use Illuminate\Http\Request;
- use Hawese\Core\Http\Controllers\Controller;
- /**
- * Just a dumb class, exposes private methods of Controller.
- * I want this methods to be private, but also need to test them.
- */
- class DumbController extends Controller
- {
- public function singleResponse($obj): object
- {
- return parent::singleResponse($obj);
- }
- public function collectionResponse(
- Request $request,
- $model,
- $filters_cb = null
- ): array {
- return parent::collectionResponse($request, $model, $filters_cb);
- }
- }
|