| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | public function testBootstrap() |
||
| 12 | { |
||
| 13 | $this->bootKernel(); |
||
| 14 | |||
| 15 | $scheduler = self::$kernel->getContainer()->get('task.scheduler'); |
||
| 16 | $storage = self::$kernel->getContainer()->get('task.storage'); |
||
| 17 | |||
| 18 | $this->assertInstanceOf(SchedulerInterface::class, $scheduler); |
||
| 19 | |||
| 20 | switch (getenv(\TestKernel::STORAGE_VAR_NAME)) { |
||
| 21 | case 'array': |
||
| 22 | $this->assertInstanceOf(ArrayStorage::class, $storage); |
||
| 23 | break; |
||
| 24 | default: |
||
| 25 | $this->fail('storage not supported'); |
||
| 26 | break; |
||
| 27 | } |
||
| 28 | } |
||
| 29 | } |
||
| 30 |