updated tests and added hint

This commit is contained in:
Steffen Vogel 2011-03-24 22:42:39 +01:00
parent 4dc269c8e8
commit 1ceb297a6a
6 changed files with 12 additions and 18 deletions

3
misc/tests/README Normal file
View file

@ -0,0 +1,3 @@
This directory contains some small scripts to test middleware components.
WARNING: some of these scripts may be outdated!

View file

@ -36,7 +36,7 @@
<script type="text/javascript">
$(document).ready(function() {
$.getJSON('../../backend/group.json?operation=get&recursive=1', function(data) {
$.getJSON('../htdocs/middleware.php/group.json', function(data) {
$('#tree').jstree({
'plugins' : [ 'themes', 'ui', ],
'types' : {

View file

@ -26,7 +26,7 @@
use Volkszaehler\Util;
include '../../backend/lib/Util/Configuration.php';
include '../lib/Util/Configuration.php';
echo '<pre>';
Util\Configuration::load('test.conf');

View file

@ -25,7 +25,7 @@
*/
use Volkszaehler\Util;
include '../../backend/lib/Util/JSON.php';
include '../lib/Util/JSON.php';
echo '<pre>';
$data = '{

View file

@ -27,11 +27,11 @@
use Volkszaehler\Util;
use Volkszaehler\Model;
define('VZ_DIR', '/home/steffen/workspace/volkszaehler.org'); // TODO realpath(__DIR__)
define('VZ_DIR', realpath(__DIR__ . '/..'));
include '../../backend/lib/Util/JSONDefinition.php';
include '../../backend/lib/Model/Property.php';
include '../../backend/lib/Util/JSON.php';
include '../lib/Util/JSONDefinition.php';
include '../lib/Model/Property.php';
include '../lib/Util/JSON.php';
echo '<pre>';

View file

@ -24,9 +24,8 @@
* along with volkszaehler.org. If not, see <http://www.gnu.org/licenses/>.
*/
include '../../backend/lib/Util/Random.php';
include '../../backend/lib/Util/UUID.php';
include '../../backend/lib/Model/Token.php';
include '../lib/Util/Random.php';
include '../lib/Util/UUID.php';
use Volkszaehler\Model;
use Volkszaehler\Util;
@ -50,14 +49,6 @@ echo 'String: ' . Util\Random::getString($chars, 100) . PHP_EOL;
echo 'Bytes: ' . Util\Random::getBytes(100) . PHP_EOL;
?>
</pre>
<h4>Token tests</h4>
<pre>
<?php
for ($i = 0; $i < 100; $i++) {
echo new Model\Token() . PHP_EOL;
}
?>
</pre>
<h4>UUId tests</h4>
<pre>
<?php