aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/config/ConfigPhpTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/config/ConfigPhpTest.php')
-rw-r--r--tests/config/ConfigPhpTest.php19
1 files changed, 16 insertions, 3 deletions
diff --git a/tests/config/ConfigPhpTest.php b/tests/config/ConfigPhpTest.php
index 58cd8d2a..be23eea1 100644
--- a/tests/config/ConfigPhpTest.php
+++ b/tests/config/ConfigPhpTest.php
@@ -1,11 +1,10 @@
1<?php 1<?php
2 2namespace Shaarli\Config;
3require_once 'application/config/ConfigPhp.php';
4 3
5/** 4/**
6 * Class ConfigPhpTest 5 * Class ConfigPhpTest
7 */ 6 */
8class ConfigPhpTest extends PHPUnit_Framework_TestCase 7class ConfigPhpTest extends \PHPUnit_Framework_TestCase
9{ 8{
10 /** 9 /**
11 * @var ConfigPhp 10 * @var ConfigPhp
@@ -38,6 +37,20 @@ class ConfigPhpTest extends PHPUnit_Framework_TestCase
38 } 37 }
39 38
40 /** 39 /**
40 * Read an empty existent config file -> array with blank default values.
41 */
42 public function testReadEmpty()
43 {
44 $dataFile = 'tests/utils/config/emptyConfigPhp.php';
45 $conf = $this->configIO->read($dataFile);
46 $this->assertEmpty($conf['login']);
47 $this->assertEmpty($conf['title']);
48 $this->assertEmpty($conf['titleLink']);
49 $this->assertEmpty($conf['config']);
50 $this->assertEmpty($conf['plugins']);
51 }
52
53 /**
41 * Write a new config file. 54 * Write a new config file.
42 */ 55 */
43 public function testWriteNew() 56 public function testWriteNew()