/** * @covers PHP_CodeCoverage::clear */ public function testClear() { $this->coverage->clear(); $this->assertAttributeEquals(null, 'currentId', $this->coverage); $this->assertAttributeEquals(array(), 'data', $this->coverage); $this->assertAttributeEquals(array(), 'tests', $this->coverage); }
/** * @covers PHP_CodeCoverage::clear */ public function testClear() { $coverage = new PHP_CodeCoverage(); $coverage->clear(); $this->assertAttributeEquals(array(), 'data', $coverage); $this->assertAttributeEquals(array(), 'coveredFiles', $coverage); $this->assertAttributeEquals(array(), 'summary', $coverage); $this->assertAttributeEquals(NULL, 'currentId', $coverage); }
/** * Before Exercise hook * * @param \Behat\Testwork\EventDispatcher\Event\ExerciseCompleted $event */ public function beforeExercise(ExerciseCompleted $event) { $this->coverage->clear(); }