Skip to content

Commit

Permalink
Add: annotation to disable kernel reset
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikael Randy committed Jan 3, 2014
1 parent 458ef43 commit 744db40
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Test/Units/WebTestCase.php
Expand Up @@ -76,6 +76,18 @@ function($strict = false) use (& $crawler, $generator) {

}

protected function setClassAnnotations(atoum\annotations\extractor $extractor)
{
parent::setClassAnnotations($extractor);

$test = $this;

$extractor
->setHandler('resetKernel', function($value) use ($test) { $test->enableKernelReset(atoum\annotations\extractor::toBoolean($value)); })
->setHandler('noResetKernel', function() use ($test) { $test->enableKernelReset(false); })
;
}

/**
* @param \Symfony\Bundle\FrameworkBundle\Client $client
* @param \Symfony\Component\DomCrawler\Crawler $crawler
Expand Down

0 comments on commit 744db40

Please sign in to comment.