List:Commits« Previous MessageNext Message »
From:uwendel Date:July 20 2007 5:23pm
Subject:PHP mysqlnd svn commit: r821 - trunk/tests/ext/mysqli
View as plain text  
Author: uwendel
Date: 2007-07-20 19:23:57 +0200 (Fri, 20 Jul 2007)
New Revision: 821

Modified:
   trunk/tests/ext/mysqli/mysqli_class_mysqli_driver_interface.phpt
Log:
STRG+SHIFT+U (fix indenting) and SHIFT+U (lowercase everything) are similar and great to
break tests.


Modified: trunk/tests/ext/mysqli/mysqli_class_mysqli_driver_interface.phpt
===================================================================
--- trunk/tests/ext/mysqli/mysqli_class_mysqli_driver_interface.phpt	2007-07-20 17:06:29
UTC (rev 820)
+++ trunk/tests/ext/mysqli/mysqli_class_mysqli_driver_interface.phpt	2007-07-20 17:23:57
UTC (rev 821)
@@ -10,14 +10,14 @@
 
 	$driver = new mysqli_driver();
 
-	printf("parent class:\n");
+	printf("Parent class:\n");
 	var_dump(get_parent_class($driver));
 
-	printf("\nmethods:\n");
+	printf("\nMethods:\n");
 	$methods = get_class_methods($driver);
 	$expected_methods = array();
 
-	if (!$is_mysqlnd) {
+	if (!$IS_MYSQLND) {
 		/* libmysql only */
 		$expected_methods = array_merge($expected_methods, array(
 			'embedded_server_start'         => true,
@@ -32,28 +32,28 @@
 		}
 	}
 	if (!empty($expected_methods)) {
-		printf("dumping list of missing methods.\n");
+		printf("Dumping list of missing methods.\n");
 		var_dump($expected_methods);
 	}
 	if (!empty($methods)) {
-		printf("dumping list of unexpected methods.\n");
+		printf("Dumping list of unexpected methods.\n");
 		var_dump($methods);
 	}
 	if (empty($expected_methods) && empty($methods))
 		printf("ok\n");
 
-	printf("\nclass variables:\n");
+	printf("\nClass variables:\n");
 	$variables = get_class_vars(get_class($driver));
 	sort($variables);
 	foreach ($variables as $k => $var)
 		printf("%s\n", $var);
 
-	printf("\nobject variables:\n");
+	printf("\nObject variables:\n");
 	$variables = get_object_vars($driver);
 	foreach ($variables as $k => $var)
 		printf("%s\n", $var);
 
-	printf("\nmagic, magic properties:\n");
+	printf("\nMagic, magic properties:\n");
 
 	assert(mysqli_get_client_info() === $driver->client_info);
 	printf("driver->client_info = '%s'\n", $driver->client_info);
@@ -66,24 +66,24 @@
 
 	assert(in_array($driver->report_mode,
 				array(
-					mysqli_report_all,
-					mysqli_report_strict,
-					mysqli_report_error,
-					mysqli_report_index,
-					mysqli_report_off
+					MYSQLI_REPORT_ALL,
+					MYSQLI_REPORT_STRICT,
+					MYSQLI_REPORT_ERROR,
+					MYSQLI_REPORT_INDEX,
+					MYSQLI_REPORT_OFF
 				)
 	));
 
 	printf("driver->report_mode = '%s'\n", $driver->report_mode);
-	$driver->report_mode = mysqli_report_strict;
-	assert($driver->report_mode === mysqli_report_strict);
+	$driver->report_mode = MYSQLI_REPORT_STRICT;
+	assert($driver->report_mode === MYSQLI_REPORT_STRICT);
 
 	assert(is_bool($driver->embedded));
 	printf("driver->embedded = '%s'\n", $driver->embedded);
 
 	printf("driver->reconnect = '%s'\n", $driver->reconnect);
 
-	printf("\naccess to undefined properties:\n");
+	printf("\nAccess to undefined properties:\n");
 	printf("driver->unknown = '%s'\n", @$driver->unknown);
 
 	print "done!";

Thread
PHP mysqlnd svn commit: r821 - trunk/tests/ext/mysqliuwendel20 Jul