Conditions | 3 |
Paths | 2 |
Total Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function testHelloWorldExercise() |
||
17 | { |
||
18 | $e = new BabySteps; |
||
19 | $this->assertEquals('Baby Steps', $e->getName()); |
||
20 | $this->assertEquals('Simple Addition', $e->getDescription()); |
||
21 | $this->assertEquals(ExerciseType::CLI, $e->getType()); |
||
22 | |||
23 | //sometime we don't get any args as number of args is random |
||
24 | //we need some args for code-coverage, so just try again |
||
25 | do { |
||
26 | $args = $e->getArgs(); |
||
27 | } while (empty($args)); |
||
28 | |||
29 | foreach ($args as $arg) { |
||
30 | $this->assertInternalType('int', $arg); |
||
31 | } |
||
32 | |||
33 | $this->assertInstanceOf(SolutionInterface::class, $e->getSolution()); |
||
34 | $this->assertFileExists(realpath($e->getProblem())); |
||
35 | $this->assertNull($e->tearDown()); |
||
36 | } |
||
37 | } |
||
38 |