| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class CommonTestClass extends \PHPUnit\Framework\TestCase |
||
| 7 | { |
||
| 8 | // public function providerBasic() |
||
| 9 | // { |
||
| 10 | // return Array( |
||
| 11 | // 0 => Array(new ORMTest()), |
||
| 12 | // 1 => Array(new ORMTestOld()) |
||
| 13 | // ); |
||
| 14 | // } |
||
| 15 | |||
| 16 | protected function mockTestFile(): string |
||
| 17 | { |
||
| 18 | return $this->getTestDir() . 'testing.upload'; |
||
| 19 | } |
||
| 20 | |||
| 21 | protected function mockSharedKey(): string |
||
| 22 | { |
||
| 23 | return 'driver.partial'; |
||
| 24 | } |
||
| 25 | |||
| 26 | protected function getTestDir(): string |
||
| 27 | { |
||
| 28 | return realpath(__DIR__ . '/tmp/') . '/'; |
||
| 29 | } |
||
| 30 | |||
| 31 | protected function getTestFile(): string |
||
| 32 | { |
||
| 33 | return realpath(__DIR__ . '/testing-ipsum.txt'); |
||
| 34 | } |
||
| 35 | |||
| 36 | protected function mockData(): InfoFormat\Data |
||
| 37 | { |
||
| 38 | return InfoFormat\Data::init()->setData( |
||
| 39 | 'abcdef', |
||
| 40 | $this->getTestDir() . 'abcdef', |
||
| 41 | 123456, |
||
| 42 | 12, |
||
| 43 | 64, |
||
| 44 | 7 |
||
| 45 | ); |
||
| 48 |