| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: xmlstream.test,v 1.1 2008/09/25 06:45:42 t0talmeltd0wn Exp $ |
|
|
|
|
function test_function($p1, $p2) { |
|
|
} |
|
| 3 |
|
|
| 4 |
class XmppServerXmlStreamTestCase extends DrupalWebTestCase { |
class XmppServerXmlStreamTestCase extends DrupalWebTestCase { |
| 5 |
function getInfo() { |
function getInfo() { |
| 83 |
); |
); |
| 84 |
|
|
| 85 |
$filters[] = array( |
$filters[] = array( |
| 86 |
|
'tag' => 'tag', |
| 87 |
|
'options' => array( |
| 88 |
|
'option' => '+', |
| 89 |
|
), |
| 90 |
|
|
| 91 |
|
'true' => true, |
| 92 |
|
'desc' => t('Successfully assert the presence of any data'), |
| 93 |
|
); |
| 94 |
|
|
| 95 |
|
$filters[] = array( |
| 96 |
|
'tag' => 'tag', |
| 97 |
|
'options' => array( |
| 98 |
|
'notexist' => '+', |
| 99 |
|
), |
| 100 |
|
|
| 101 |
|
'true' => false, |
| 102 |
|
'desc' => t('Fail assertion of the presence of any data'), |
| 103 |
|
); |
| 104 |
|
|
| 105 |
|
$filters[] = array( |
| 106 |
'tag' => '!tag', |
'tag' => '!tag', |
| 107 |
|
|
| 108 |
'true' => false, |
'true' => false, |
| 110 |
); |
); |
| 111 |
|
|
| 112 |
$filters[] = array( |
$filters[] = array( |
| 113 |
'tag' => '?tag', |
'tag' => 'tag', |
| 114 |
|
'options' => array( |
| 115 |
|
'option' => '?value', |
| 116 |
|
), |
| 117 |
|
|
| 118 |
|
'true' => true, |
| 119 |
|
'desc' => t('Successful assertion with the ? filter when option is present'), |
| 120 |
|
); |
| 121 |
|
|
| 122 |
|
$filters[] = array( |
| 123 |
|
'tag' => 'tag', |
| 124 |
|
'options' => array( |
| 125 |
|
'notexist' => '?value', |
| 126 |
|
), |
| 127 |
|
|
| 128 |
'true' => true, |
'true' => true, |
| 129 |
'desc' => t('Successful assertion that tag is "tag" or nothing with the filter "?tag"'), |
'desc' => t('Successful assertion with the ? filter when option is absent'), |
| 130 |
|
); |
| 131 |
|
|
| 132 |
|
$filters[] = array( |
| 133 |
|
'tag' => 'tag', |
| 134 |
|
'options' => array( |
| 135 |
|
'option' => '?notvalue', |
| 136 |
|
), |
| 137 |
|
|
| 138 |
|
'true' => false, |
| 139 |
|
'desc' => t('Failed assertion with the ? filter'), |
| 140 |
); |
); |
| 141 |
|
|
| 142 |
$filters[] = array( |
$filters[] = array( |