summaryrefslogtreecommitdiff
path: root/tests/php/dbg.php
blob: b9841c7d9a5405af315f3de8a589dcf37c30d4ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php

/**
  *  For debugging tests
  *  
  */








//-

// initialize a couple of objects
$object1 = new TestBaseClass\Comparable();
$object2 = new TestBaseClass\Comparable();
$object3 = new TestBaseClass\Comparable();

// compare the objects
if ($object1 < $object2)
{
    echo("$object1 is smaller than $object2\n");
}
else
{
    echo("$object1 is bigger than $object2\n");
}

if ($object1 == $object3)
{
    echo("$object1 is equal to $object3\n");
}
else
{
    echo("$object1 is not equal to $object3\n");
}

if ($object1 != $object2)
{
    echo("$object1 is not equal to $object2\n");
}
else
{
    echo("$object1 is equal to $object2\n");
}