/[drupal]/contributions/modules/xmpp_server/tests/xmlstream.test
ViewVC logotype

Diff of /contributions/modules/xmpp_server/tests/xmlstream.test

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Thu Sep 25 06:45:42 2008 UTC revision 1.2, Thu Sep 25 21:55:22 2008 UTC
# Line 1  Line 1 
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() {
# Line 86  class XmppServerXmlStreamTestCase extend Line 83  class XmppServerXmlStreamTestCase extend
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,
# Line 93  class XmppServerXmlStreamTestCase extend Line 110  class XmppServerXmlStreamTestCase extend
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(

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2