| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class CommonTestClass extends TestCase |
||
| 8 | { |
||
| 9 | // public function providerBasic() |
||
| 10 | // { |
||
| 11 | // } |
||
| 12 | |||
| 13 | protected function mockContent(): Basics\Content |
||
| 14 | { |
||
| 15 | return (new Basics\Content())->setData( |
||
| 16 | 'testing content', |
||
| 17 | 'qwertzuiopasdfghjklyxcvbnm', |
||
| 18 | 'on_testing_service' |
||
| 19 | ); |
||
| 20 | } |
||
| 21 | |||
| 22 | protected function mockAttachment(): Basics\Attachment |
||
| 23 | { |
||
| 24 | return (new Basics\Attachment())->setData( |
||
| 25 | 'testing_file', |
||
| 26 | '', |
||
| 27 | 'qwertzuiopasdfghjklyxcvbnm', |
||
| 28 | 'text/plain', |
||
| 29 | 'utf8' |
||
| 30 | ); |
||
| 31 | } |
||
| 32 | |||
| 33 | protected function mockUser(): Basics\User |
||
| 38 | ); |
||
| 39 | } |
||
| 40 | |||
| 41 | protected function mockResult(bool $status): Basics\Result |
||
| 46 |