for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Test suite to validate the Configuration class
*/
namespace Graviton\Deployment;
use Symfony\Component\Config\FileLocator;
* @author List of contributors <https://github.com/libgraviton/deploy-scripts/graphs/contributors>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @link http://swisscom.ch
class ConfigurationTest extends DeployScriptsTestCase
{
* @return void
public function testLoadExpectingException()
$fileLocator = new FileLocator(__DIR__ . '/Resources/config');
$processorDouble = $this->getConfigurationProcessorDouble(array('processConfiguration'));
$processorDouble
->expects($this->once())
->method('processConfiguration')
->willReturn(array());
$configuration = new Configuration($processorDouble, $fileLocator);
$this->setExpectedException('\Symfony\Component\Config\Definition\Exception\InvalidConfigurationException');
$configuration->load();
}