Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

Commit

Permalink
Add tests for 100% code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
neilime committed Aug 19, 2013
1 parent cd379b0 commit 21bdf50
Show file tree
Hide file tree
Showing 187 changed files with 182 additions and 23,629 deletions.
12 changes: 12 additions & 0 deletions tests/AssetsBundleTest/Factory/ServiceFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ public function testCreateServiceWithClassnameFilter(){
$this->serviceFactory->createService(\AssetsBundleTest\Bootstrap::getServiceManager());
}

public function testCreateServiceWithClassnameRendererToStrategy(){
$aConfiguration = $this->configuration;
$aConfiguration['asset_bundle']['rendererToStrategy']['zendviewrendererphprenderer'] = '\AssetsBundle\View\Strategy\ViewHelperStrategy';

$oServiceManager = \AssetsBundleTest\Bootstrap::getServiceManager();
$bAllowOverride = $oServiceManager->getAllowOverride();
if(!$bAllowOverride)$oServiceManager->setAllowOverride(true);
$oServiceManager->setService('Config',$aConfiguration)->setAllowOverride($bAllowOverride);

$this->serviceFactory->createService(\AssetsBundleTest\Bootstrap::getServiceManager());
}

/**
* @expectedException InvalidArgumentException
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/_report/Module.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ <h4>Legend</h4>
<span class="warning"><strong>Dead Code</strong></span>
</p>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.9</a> using <a href="http://www.php.net/" target="_top">PHP 5.4.13</a> and <a href="http://phpunit.de/">PHPUnit 3.7.18</a> at Fri Aug 16 10:36:33 CEST 2013.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.9</a> using <a href="http://www.php.net/" target="_top">PHP 5.4.13</a> and <a href="http://phpunit.de/">PHPUnit 3.7.18</a> at Mon Aug 19 9:59:30 CEST 2013.</small>
</p>
</footer>
</div>
Expand Down
4 changes: 2 additions & 2 deletions tests/_report/index.dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h2>Least Tested Methods</h2>
</div>
<footer>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.9</a> using <a href="http://www.php.net/" target="_top">PHP 5.4.13</a> and <a href="http://phpunit.de/">PHPUnit 3.7.18</a> at Fri Aug 16 10:36:33 CEST 2013.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.9</a> using <a href="http://www.php.net/" target="_top">PHP 5.4.13</a> and <a href="http://phpunit.de/">PHPUnit 3.7.18</a> at Mon Aug 19 9:59:30 CEST 2013.</small>
</p>
</footer>
</div>
Expand Down Expand Up @@ -107,7 +107,7 @@ <h2>Least Tested Methods</h2>
}
},
series: [{
data: [[100,16,"<a href=\"Module.php.html#3\">Module<\/a>"],[100,10,"<a href=\"src_AssetsBundle_Controller_ToolsController.php.html#3\">ToolsController<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_CssFilterFactory.php.html#3\">CssFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_GifFilterFactory.php.html#3\">GifFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_JpegFilterFactory.php.html#3\">JpegFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_JsFilterFactory.php.html#3\">JsFilterFactory<\/a>"],[100,2,"<a href=\"src_AssetsBundle_Factory_Filter_LessFilterFactory.php.html#3\">LessFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_PngFilterFactory.php.html#3\">PngFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_JsCustomRendererFactory.php.html#3\">JsCustomRendererFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_JsCustomStrategyFactory.php.html#3\">JsCustomStrategyFactory<\/a>"],[100,10,"<a href=\"src_AssetsBundle_Factory_ServiceFactory.php.html#3\">ServiceFactory<\/a>"],[100,14,"<a href=\"src_AssetsBundle_Mvc_Controller_AbstractActionController.php.html#3\">AbstractActionController<\/a>"],[100,4,"<a href=\"src_AssetsBundle_Service_AssetsFilterManager.php.html#3\">AssetsFilterManager<\/a>"],[100,15,"<a href=\"src_AssetsBundle_Service_Filter_AbstractImageFilter.php.html#3\">AbstractImageFilter<\/a>"],[100,5,"<a href=\"src_AssetsBundle_Service_Filter_CssFilter.php.html#3\">CssFilter<\/a>"],[100,9,"<a href=\"src_AssetsBundle_Service_Filter_GifFilter.php.html#3\">GifFilter<\/a>"],[100,10,"<a href=\"src_AssetsBundle_Service_Filter_JpegFilter.php.html#3\">JpegFilter<\/a>"],[100,4,"<a href=\"src_AssetsBundle_Service_Filter_JsFilter.php.html#3\">JsFilter<\/a>"],[100,19,"<a href=\"src_AssetsBundle_Service_Filter_LessFilter.php.html#3\">LessFilter<\/a>"],[100,10,"<a href=\"src_AssetsBundle_Service_Filter_PngFilter.php.html#3\">PngFilter<\/a>"],[100,4,"<a href=\"src_AssetsBundle_Service_RenderStrategyManager.php.html#3\">RenderStrategyManager<\/a>"],[100,240,"<a href=\"src_AssetsBundle_Service_Service.php.html#3\">Service<\/a>"],[100,77,"<a href=\"src_AssetsBundle_Service_ServiceOptions.php.html#3\">ServiceOptions<\/a>"],[100,15,"<a href=\"src_AssetsBundle_View_Renderer_JsCustomRenderer.php.html#3\">JsCustomRenderer<\/a>"],[100,4,"<a href=\"src_AssetsBundle_View_Strategy_AbstractStrategy.php.html#3\">AbstractStrategy<\/a>"],[100,23,"<a href=\"src_AssetsBundle_View_Strategy_JsCustomStrategy.php.html#3\">JsCustomStrategy<\/a>"],[100,0,"<a href=\"src_AssetsBundle_View_Strategy_NoneStrategy.php.html#3\">NoneStrategy<\/a>"],[100,5,"<a href=\"src_AssetsBundle_View_Strategy_ViewHelperStrategy.php.html#3\">ViewHelperStrategy<\/a>"]],
data: [[100,16,"<a href=\"Module.php.html#3\">Module<\/a>"],[100,10,"<a href=\"src_AssetsBundle_Controller_ToolsController.php.html#3\">ToolsController<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_CssFilterFactory.php.html#3\">CssFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_GifFilterFactory.php.html#3\">GifFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_JpegFilterFactory.php.html#3\">JpegFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_JsFilterFactory.php.html#3\">JsFilterFactory<\/a>"],[100,2,"<a href=\"src_AssetsBundle_Factory_Filter_LessFilterFactory.php.html#3\">LessFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_PngFilterFactory.php.html#3\">PngFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_JsCustomRendererFactory.php.html#3\">JsCustomRendererFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_JsCustomStrategyFactory.php.html#3\">JsCustomStrategyFactory<\/a>"],[100,16,"<a href=\"src_AssetsBundle_Factory_ServiceFactory.php.html#3\">ServiceFactory<\/a>"],[100,14,"<a href=\"src_AssetsBundle_Mvc_Controller_AbstractActionController.php.html#3\">AbstractActionController<\/a>"],[100,4,"<a href=\"src_AssetsBundle_Service_AssetsFilterManager.php.html#3\">AssetsFilterManager<\/a>"],[100,15,"<a href=\"src_AssetsBundle_Service_Filter_AbstractImageFilter.php.html#3\">AbstractImageFilter<\/a>"],[100,5,"<a href=\"src_AssetsBundle_Service_Filter_CssFilter.php.html#3\">CssFilter<\/a>"],[100,9,"<a href=\"src_AssetsBundle_Service_Filter_GifFilter.php.html#3\">GifFilter<\/a>"],[100,10,"<a href=\"src_AssetsBundle_Service_Filter_JpegFilter.php.html#3\">JpegFilter<\/a>"],[100,4,"<a href=\"src_AssetsBundle_Service_Filter_JsFilter.php.html#3\">JsFilter<\/a>"],[100,19,"<a href=\"src_AssetsBundle_Service_Filter_LessFilter.php.html#3\">LessFilter<\/a>"],[100,10,"<a href=\"src_AssetsBundle_Service_Filter_PngFilter.php.html#3\">PngFilter<\/a>"],[100,4,"<a href=\"src_AssetsBundle_Service_RenderStrategyManager.php.html#3\">RenderStrategyManager<\/a>"],[100,240,"<a href=\"src_AssetsBundle_Service_Service.php.html#3\">Service<\/a>"],[100,77,"<a href=\"src_AssetsBundle_Service_ServiceOptions.php.html#3\">ServiceOptions<\/a>"],[100,15,"<a href=\"src_AssetsBundle_View_Renderer_JsCustomRenderer.php.html#3\">JsCustomRenderer<\/a>"],[100,4,"<a href=\"src_AssetsBundle_View_Strategy_AbstractStrategy.php.html#3\">AbstractStrategy<\/a>"],[100,23,"<a href=\"src_AssetsBundle_View_Strategy_JsCustomStrategy.php.html#3\">JsCustomStrategy<\/a>"],[100,0,"<a href=\"src_AssetsBundle_View_Strategy_NoneStrategy.php.html#3\">NoneStrategy<\/a>"],[100,5,"<a href=\"src_AssetsBundle_View_Strategy_ViewHelperStrategy.php.html#3\">ViewHelperStrategy<\/a>"]],
marker: {
symbol: 'diamond'
}
Expand Down
6 changes: 3 additions & 3 deletions tests/_report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</div>
</td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">852&nbsp;/&nbsp;852</div></td>
<td class="success small"><div align="right">859&nbsp;/&nbsp;859</div></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
Expand All @@ -69,7 +69,7 @@
</div>
</td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">810&nbsp;/&nbsp;810</div></td>
<td class="success small"><div align="right">817&nbsp;/&nbsp;817</div></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
Expand Down Expand Up @@ -117,7 +117,7 @@ <h4>Legend</h4>
<span class="success"><strong>High</strong>: 70% to 100%</span>
</p>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.9</a> using <a href="http://www.php.net/" target="_top">PHP 5.4.13</a> and <a href="http://phpunit.de/">PHPUnit 3.7.18</a> at Fri Aug 16 10:36:33 CEST 2013.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.9</a> using <a href="http://www.php.net/" target="_top">PHP 5.4.13</a> and <a href="http://phpunit.de/">PHPUnit 3.7.18</a> at Mon Aug 19 9:59:30 CEST 2013.</small>
</p>
</footer>
</div>
Expand Down
4 changes: 2 additions & 2 deletions tests/_report/src.dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h2>Least Tested Methods</h2>
</div>
<footer>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.9</a> using <a href="http://www.php.net/" target="_top">PHP 5.4.13</a> and <a href="http://phpunit.de/">PHPUnit 3.7.18</a> at Fri Aug 16 10:36:33 CEST 2013.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.9</a> using <a href="http://www.php.net/" target="_top">PHP 5.4.13</a> and <a href="http://phpunit.de/">PHPUnit 3.7.18</a> at Mon Aug 19 9:59:30 CEST 2013.</small>
</p>
</footer>
</div>
Expand Down Expand Up @@ -108,7 +108,7 @@ <h2>Least Tested Methods</h2>
}
},
series: [{
data: [[100,10,"<a href=\"src_AssetsBundle_Controller_ToolsController.php.html#3\">ToolsController<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_CssFilterFactory.php.html#3\">CssFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_GifFilterFactory.php.html#3\">GifFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_JpegFilterFactory.php.html#3\">JpegFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_JsFilterFactory.php.html#3\">JsFilterFactory<\/a>"],[100,2,"<a href=\"src_AssetsBundle_Factory_Filter_LessFilterFactory.php.html#3\">LessFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_PngFilterFactory.php.html#3\">PngFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_JsCustomRendererFactory.php.html#3\">JsCustomRendererFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_JsCustomStrategyFactory.php.html#3\">JsCustomStrategyFactory<\/a>"],[100,10,"<a href=\"src_AssetsBundle_Factory_ServiceFactory.php.html#3\">ServiceFactory<\/a>"],[100,14,"<a href=\"src_AssetsBundle_Mvc_Controller_AbstractActionController.php.html#3\">AbstractActionController<\/a>"],[100,4,"<a href=\"src_AssetsBundle_Service_AssetsFilterManager.php.html#3\">AssetsFilterManager<\/a>"],[100,15,"<a href=\"src_AssetsBundle_Service_Filter_AbstractImageFilter.php.html#3\">AbstractImageFilter<\/a>"],[100,5,"<a href=\"src_AssetsBundle_Service_Filter_CssFilter.php.html#3\">CssFilter<\/a>"],[100,9,"<a href=\"src_AssetsBundle_Service_Filter_GifFilter.php.html#3\">GifFilter<\/a>"],[100,10,"<a href=\"src_AssetsBundle_Service_Filter_JpegFilter.php.html#3\">JpegFilter<\/a>"],[100,4,"<a href=\"src_AssetsBundle_Service_Filter_JsFilter.php.html#3\">JsFilter<\/a>"],[100,19,"<a href=\"src_AssetsBundle_Service_Filter_LessFilter.php.html#3\">LessFilter<\/a>"],[100,10,"<a href=\"src_AssetsBundle_Service_Filter_PngFilter.php.html#3\">PngFilter<\/a>"],[100,4,"<a href=\"src_AssetsBundle_Service_RenderStrategyManager.php.html#3\">RenderStrategyManager<\/a>"],[100,240,"<a href=\"src_AssetsBundle_Service_Service.php.html#3\">Service<\/a>"],[100,77,"<a href=\"src_AssetsBundle_Service_ServiceOptions.php.html#3\">ServiceOptions<\/a>"],[100,15,"<a href=\"src_AssetsBundle_View_Renderer_JsCustomRenderer.php.html#3\">JsCustomRenderer<\/a>"],[100,4,"<a href=\"src_AssetsBundle_View_Strategy_AbstractStrategy.php.html#3\">AbstractStrategy<\/a>"],[100,23,"<a href=\"src_AssetsBundle_View_Strategy_JsCustomStrategy.php.html#3\">JsCustomStrategy<\/a>"],[100,0,"<a href=\"src_AssetsBundle_View_Strategy_NoneStrategy.php.html#3\">NoneStrategy<\/a>"],[100,5,"<a href=\"src_AssetsBundle_View_Strategy_ViewHelperStrategy.php.html#3\">ViewHelperStrategy<\/a>"]],
data: [[100,10,"<a href=\"src_AssetsBundle_Controller_ToolsController.php.html#3\">ToolsController<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_CssFilterFactory.php.html#3\">CssFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_GifFilterFactory.php.html#3\">GifFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_JpegFilterFactory.php.html#3\">JpegFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_JsFilterFactory.php.html#3\">JsFilterFactory<\/a>"],[100,2,"<a href=\"src_AssetsBundle_Factory_Filter_LessFilterFactory.php.html#3\">LessFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_Filter_PngFilterFactory.php.html#3\">PngFilterFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_JsCustomRendererFactory.php.html#3\">JsCustomRendererFactory<\/a>"],[100,1,"<a href=\"src_AssetsBundle_Factory_JsCustomStrategyFactory.php.html#3\">JsCustomStrategyFactory<\/a>"],[100,16,"<a href=\"src_AssetsBundle_Factory_ServiceFactory.php.html#3\">ServiceFactory<\/a>"],[100,14,"<a href=\"src_AssetsBundle_Mvc_Controller_AbstractActionController.php.html#3\">AbstractActionController<\/a>"],[100,4,"<a href=\"src_AssetsBundle_Service_AssetsFilterManager.php.html#3\">AssetsFilterManager<\/a>"],[100,15,"<a href=\"src_AssetsBundle_Service_Filter_AbstractImageFilter.php.html#3\">AbstractImageFilter<\/a>"],[100,5,"<a href=\"src_AssetsBundle_Service_Filter_CssFilter.php.html#3\">CssFilter<\/a>"],[100,9,"<a href=\"src_AssetsBundle_Service_Filter_GifFilter.php.html#3\">GifFilter<\/a>"],[100,10,"<a href=\"src_AssetsBundle_Service_Filter_JpegFilter.php.html#3\">JpegFilter<\/a>"],[100,4,"<a href=\"src_AssetsBundle_Service_Filter_JsFilter.php.html#3\">JsFilter<\/a>"],[100,19,"<a href=\"src_AssetsBundle_Service_Filter_LessFilter.php.html#3\">LessFilter<\/a>"],[100,10,"<a href=\"src_AssetsBundle_Service_Filter_PngFilter.php.html#3\">PngFilter<\/a>"],[100,4,"<a href=\"src_AssetsBundle_Service_RenderStrategyManager.php.html#3\">RenderStrategyManager<\/a>"],[100,240,"<a href=\"src_AssetsBundle_Service_Service.php.html#3\">Service<\/a>"],[100,77,"<a href=\"src_AssetsBundle_Service_ServiceOptions.php.html#3\">ServiceOptions<\/a>"],[100,15,"<a href=\"src_AssetsBundle_View_Renderer_JsCustomRenderer.php.html#3\">JsCustomRenderer<\/a>"],[100,4,"<a href=\"src_AssetsBundle_View_Strategy_AbstractStrategy.php.html#3\">AbstractStrategy<\/a>"],[100,23,"<a href=\"src_AssetsBundle_View_Strategy_JsCustomStrategy.php.html#3\">JsCustomStrategy<\/a>"],[100,0,"<a href=\"src_AssetsBundle_View_Strategy_NoneStrategy.php.html#3\">NoneStrategy<\/a>"],[100,5,"<a href=\"src_AssetsBundle_View_Strategy_ViewHelperStrategy.php.html#3\">ViewHelperStrategy<\/a>"]],
marker: {
symbol: 'diamond'
}
Expand Down
6 changes: 3 additions & 3 deletions tests/_report/src.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</div>
</td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">810&nbsp;/&nbsp;810</div></td>
<td class="success small"><div align="right">817&nbsp;/&nbsp;817</div></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
Expand All @@ -70,7 +70,7 @@
</div>
</td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">810&nbsp;/&nbsp;810</div></td>
<td class="success small"><div align="right">817&nbsp;/&nbsp;817</div></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
Expand All @@ -96,7 +96,7 @@ <h4>Legend</h4>
<span class="success"><strong>High</strong>: 70% to 100%</span>
</p>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.9</a> using <a href="http://www.php.net/" target="_top">PHP 5.4.13</a> and <a href="http://phpunit.de/">PHPUnit 3.7.18</a> at Fri Aug 16 10:36:33 CEST 2013.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.9</a> using <a href="http://www.php.net/" target="_top">PHP 5.4.13</a> and <a href="http://phpunit.de/">PHPUnit 3.7.18</a> at Mon Aug 19 9:59:30 CEST 2013.</small>
</p>
</footer>
</div>
Expand Down
Loading

0 comments on commit 21bdf50

Please sign in to comment.