vzlogger/share/tests/configuration.php
Steffen Vogel 7d99cd7318 added class to generate prn
added script to test this class
some cosmetics on the other test scripts
2010-07-31 15:41:56 +02:00

38 lines
No EOL
1.1 KiB
PHP

<?php
/**
* A test for our Configuration class
*
* @package tests
* @copyright Copyright (c) 2010, The volkszaehler.org project
* @license http://www.gnu.org/licenses/gpl.txt GNU Public License
* @author Steffen Vogel <info@steffenvogel.de>
*/
/*
* This file is part of volkzaehler.org
*
* volkzaehler.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* volkzaehler.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with volkszaehler.org. If not, see <http://www.gnu.org/licenses/>.
*/
use Volkszaehler\Util;
include '../../backend/lib/Util/Configuration.php';
echo '<pre>';
Util\Configuration::load('test.conf');
var_dump(Util\Configuration::read());
Util\Configuration::store('test.conf');
echo '</pre>';
?>