Permalink
Browse files

Merge branch 'master' into engine

  • Loading branch information...
2 parents 568aaea + 5a15fcd commit 092cbf2e9f9f11f32108a1a06e0503c4ff745bba @mageekguy mageekguy committed Apr 24, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 tests/units/classes/test.php
@@ -162,7 +162,9 @@ public function testEnableCodeCoverage()
->assert('Code coverage must be enabled only if xdebug is available')
->if($adapter = new atoum\test\adapter())
->and($adapter->extension_loaded = function($extension) { return $extension == 'xdebug'; })
- ->and($test = new emptyTest(null, null, $adapter))
+ ->and($factory = new atoum\factory())
+ ->and($factory->returnWhenBuild('mageekguy\atoum\adapter', $adapter))
+ ->and($test = new emptyTest($factory))
->then
->boolean($test->codeCoverageIsEnabled())->isTrue()
->object($test->enableCodeCoverage())->isIdenticalTo($test)
@@ -189,7 +191,9 @@ public function testDisableCodeCoverage()
$this
->if($adapter = new atoum\test\adapter())
->and($adapter->extension_loaded = true)
- ->and($test = new emptyTest(null, null, $adapter))
+ ->and($factory = new atoum\factory())
+ ->and($factory->returnWhenBuild('mageekguy\atoum\adapter', $adapter))
+ ->and($test = new emptyTest($factory))
->then
->boolean($test->codeCoverageIsEnabled())->isTrue()
->object($test->disableCodeCoverage())->isIdenticalTo($test)

0 comments on commit 092cbf2

Please sign in to comment.