<?php
+namespace Shaarli\Config;
/**
* Unit tests for Class ConfigManagerTest
* Note: it only test the manager with ConfigJson,
* ConfigPhp is only a workaround to handle the transition to JSON type.
*/
-class ConfigManagerTest extends PHPUnit_Framework_TestCase
+class ConfigManagerTest extends \PHPUnit_Framework_TestCase
{
/**
* @var ConfigManager
/**
* Set with an empty key.
*
- * @expectedException Exception
+ * @expectedException \Exception
* @expectedExceptionMessageRegExp #^Invalid setting key parameter. String expected, got.*#
*/
public function testSetEmptyKey()
/**
* Set with an array key.
*
- * @expectedException Exception
+ * @expectedException \Exception
* @expectedExceptionMessageRegExp #^Invalid setting key parameter. String expected, got.*#
*/
public function testSetArrayKey()
/**
* Try to write the config without mandatory parameter (e.g. 'login').
*
- * @expectedException MissingFieldConfigException
+ * @expectedException Shaarli\Config\Exception\MissingFieldConfigException
*/
public function testWriteMissingParameter()
{