thekid          Wed Mar 14 12:00:35 2007 UTC

  Modified files:              
    /php-src/ext/sybase_ct/tests        test_fields.phpt 
                                        test_fetch_object.phpt 
  Log:
  - Changed expected output
  # Due to var_export() & __set_state() changes
  
http://cvs.php.net/viewvc.cgi/php-src/ext/sybase_ct/tests/test_fields.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/sybase_ct/tests/test_fields.phpt
diff -u php-src/ext/sybase_ct/tests/test_fields.phpt:1.1 
php-src/ext/sybase_ct/tests/test_fields.phpt:1.2
--- php-src/ext/sybase_ct/tests/test_fields.phpt:1.1    Mon Jul 12 20:26:53 2004
+++ php-src/ext/sybase_ct/tests/test_fields.phpt        Wed Mar 14 12:00:35 2007
@@ -6,7 +6,7 @@
 <?php
 /* This file is part of PHP test framework for ext/sybase_ct
  *
- * $Id: test_fields.phpt,v 1.1 2004/07/12 20:26:53 thekid Exp $ 
+ * $Id: test_fields.phpt,v 1.2 2007/03/14 12:00:35 thekid Exp $ 
  */
 
   require('test.inc');
@@ -38,39 +38,39 @@
 --EXPECTF--
 resource(%d) of type (sybase-ct result)
 int(4)
-class stdClass {
-  %s $name = 'id';
-  %s $max_length = 11;
-  %s $column_source = '';
-  %s $numeric = 1;
-  %s $type = 'int';
-}
-class stdClass {
-  %s $name = 'caption';
-  %s $max_length = 5;
-  %s $column_source = '';
-  %s $numeric = 0;
-  %s $type = 'string';
-}
-class stdClass {
-  %s $name = 'author';
-  %s $max_length = 4;
-  %s $column_source = '';
-  %s $numeric = 0;
-  %s $type = 'string';
-}
-class stdClass {
-  %s $name = 'lastchange';
-  %s $max_length = 29;
-  %s $column_source = '';
-  %s $numeric = 0;
-  %s $type = 'datetime';
-}
+stdClass::__set_state(array(
+   'name' => 'id',
+   'max_length' => 11,
+   'column_source' => '',
+   'numeric' => 1,
+   'type' => 'int',
+))
+stdClass::__set_state(array(
+   'name' => 'caption',
+   'max_length' => 5,
+   'column_source' => '',
+   'numeric' => 0,
+   'type' => 'string',
+))
+stdClass::__set_state(array(
+   'name' => 'author',
+   'max_length' => 4,
+   'column_source' => '',
+   'numeric' => 0,
+   'type' => 'string',
+))
+stdClass::__set_state(array(
+   'name' => 'lastchange',
+   'max_length' => 29,
+   'column_source' => '',
+   'numeric' => 0,
+   'type' => 'datetime',
+))
 bool(true)
-class stdClass {
-  %s $name = 'caption';
-  %s $max_length = 5;
-  %s $column_source = '';
-  %s $numeric = 0;
-  %s $type = 'string';
-}
+stdClass::__set_state(array(
+   'name' => 'caption',
+   'max_length' => 5,
+   'column_source' => '',
+   'numeric' => 0,
+   'type' => 'string',
+))
http://cvs.php.net/viewvc.cgi/php-src/ext/sybase_ct/tests/test_fetch_object.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/sybase_ct/tests/test_fetch_object.phpt
diff -u php-src/ext/sybase_ct/tests/test_fetch_object.phpt:1.1 
php-src/ext/sybase_ct/tests/test_fetch_object.phpt:1.2
--- php-src/ext/sybase_ct/tests/test_fetch_object.phpt:1.1      Sun Jul 11 
16:10:03 2004
+++ php-src/ext/sybase_ct/tests/test_fetch_object.phpt  Wed Mar 14 12:00:35 2007
@@ -8,7 +8,7 @@
 <?php
 /* This file is part of PHP test framework for ext/sybase_ct
  *
- * $Id: test_fetch_object.phpt,v 1.1 2004/07/11 16:10:03 thekid Exp $
+ * $Id: test_fetch_object.phpt,v 1.2 2007/03/14 12:00:35 thekid Exp $
  */
 
   require('test.inc');
@@ -46,29 +46,29 @@
   sybase_close($db);
 ?>
 --EXPECTF--
-class stdClass {
-  %s $id = 1;
-  %s $caption = 'Hello';
-  %s $author = 'timm';
-  %s $lastchange = '%s';
-}
-class article {
-  %s $id = 1;
-  %s $caption = 'Hello';
-  %s $author = 'timm';
-  %s $lastchange = '%s';
-}
-class article {
-  %s $id = 1;
-  %s $caption = 'Hello';
-  %s $author = 'timm';
-  %s $lastchange = '%s';
-}
+stdClass::__set_state(array(
+   'id' => 1,
+   'caption' => 'Hello',
+   'author' => 'timm',
+   'lastchange' => '%s',
+))
+article::__set_state(array(
+   'id' => 1,
+   'caption' => 'Hello',
+   'author' => 'timm',
+   'lastchange' => '%s',
+))
+article::__set_state(array(
+   'id' => 1,
+   'caption' => 'Hello',
+   'author' => 'timm',
+   'lastchange' => '%s',
+))
 
 Notice: sybase_fetch_object(): Sybase:  Class *** has not been declared in 
%s/test_fetch_object.php on line %d
-class stdClass {
-  %s $id = 1;
-  %s $caption = 'Hello';
-  %s $author = 'timm';
-  %s $lastchange = '%s';
-}
+stdClass::__set_state(array(
+   'id' => 1,
+   'caption' => 'Hello',
+   'author' => 'timm',
+   'lastchange' => '%s',
+))

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to