From 89a27c4839fd2de3509b6ae5037acb151075a90f Mon Sep 17 00:00:00 2001 From: Timandes White Date: Sun, 24 Jun 2018 07:47:23 +0800 Subject: [PATCH] Fix test cases --- tests/001.phpt | 5 ++++- tests/ZookeeperConfig/add.phpt | 8 ++++---- tests/ZookeeperConfig/remove.phpt | 7 +++---- tests/ZookeeperConfig/set_n_get.phpt | 7 +++---- tests/ZookeeperConfig/set_with_no_auth.phpt | 7 +++---- tests/add_auth.phpt | 6 +++--- tests/add_auth_with_callback.phpt | 6 +++--- tests/check_if_exists_after_closing.phpt | 6 +++--- tests/check_if_exists_without_connect.phpt | 6 +++--- tests/close.phpt | 6 +++--- tests/connect.phpt | 6 +++--- tests/connect_with_invalid_param.phpt | 6 +++--- tests/construct.phpt | 6 +++--- tests/construct_and_connect.phpt | 6 +++--- tests/construct_retrieve_error_with_invalid_recv.phpt | 6 +++--- tests/construct_with_invalid_param.phpt | 6 +++--- tests/create_node.phpt | 6 +++--- tests/create_node_after_closing_and_connecting_again.phpt | 6 +++--- tests/create_node_retrieve_invalid_status_error.phpt | 6 +++--- tests/create_node_with_invalid_param.phpt | 6 +++--- tests/create_node_without_connect.phpt | 6 +++--- tests/exists_retrieve_error_with_invalid_param.phpt | 6 +++--- tests/exists_with_invalid_param.phpt | 6 +++--- tests/extension_info.phpt | 6 +++--- tests/getConfig.phpt | 7 +++++-- tests/gh-az-issue-29.phpt | 6 +++--- tests/remove_invalid_node.phpt | 6 +++--- tests/remove_node.phpt | 6 +++--- tests/remove_node_with_invalid_param.phpt | 6 +++--- tests/remove_node_without_connect.phpt | 6 +++--- tests/retrieve_acl.phpt | 6 +++--- tests/retrieve_acl_error_with_invalid_node.phpt | 6 +++--- tests/retrieve_acl_without_connect.phpt | 6 +++--- tests/retrieve_bool_is_recoverable.phpt | 6 +++--- tests/retrieve_bool_is_recoverable_without_conect.phpt | 6 +++--- tests/retrieve_children.phpt | 6 +++--- tests/retrieve_children_with_invalid_node.phpt | 6 +++--- tests/retrieve_children_with_watcher_callback.phpt | 6 +++--- tests/retrieve_children_without_connect.phpt | 6 +++--- tests/retrieve_client_id.phpt | 6 +++--- tests/retrieve_client_id_with_param.phpt | 6 +++--- tests/retrieve_client_id_without_connect.phpt | 6 +++--- tests/retrieve_error_recv_timeout_with_invalid_param.phpt | 6 +++--- .../retrieve_error_when_get_node_with_invalid_param.phpt | 6 +++--- ...etrieve_error_when_getchildren_with_invalid_param.phpt | 6 +++--- tests/retrieve_error_with_invalid_acl_param.phpt | 6 +++--- tests/retrieve_false_when_not_exists.phpt | 6 +++--- tests/retrieve_node.phpt | 6 +++--- tests/retrieve_node_with_maxsize_param.phpt | 6 +++--- tests/retrieve_node_with_watcher_callback.phpt | 6 +++--- tests/retrieve_node_without_connect.phpt | 6 +++--- tests/retrieve_null_when_get_empty_node.phpt | 6 +++--- tests/retrieve_recv_timeout.phpt | 6 +++--- tests/retrieve_recv_timeout_without_connect.phpt | 6 +++--- tests/retrieve_state.phpt | 6 +++--- tests/retrieve_state_with_param.phpt | 6 +++--- tests/retrieve_state_without_connect.phpt | 6 +++--- tests/retrieve_true_when_exists.phpt | 6 +++--- tests/retrieve_true_when_exists_with_callback.phpt | 6 +++--- tests/session-basic.phpt | 6 +++--- tests/set_node_value_without_connect.phpt | 6 +++--- tests/set_null_value_and_stats_in_node.phpt | 6 +++--- tests/set_should_throw_error_with_invalid_node.phpt | 6 +++--- tests/set_should_throw_error_with_invalid_param.phpt | 6 +++--- tests/set_watcher.phpt | 6 +++--- tests/setacl_should_throw_error_with_invalid_param.phpt | 6 +++--- tests/should_set_acl.phpt | 6 +++--- tests/should_set_acl_with_invalid_path.phpt | 6 +++--- tests/should_set_acl_without_connect.phpt | 6 +++--- tests/should_set_debug_level.phpt | 6 +++--- tests/should_set_debug_level_with_invalid_param.phpt | 6 +++--- tests/should_set_deterministic_conn_order.phpt | 6 +++--- ...d_set_deterministic_conn_order_with_invalid_param.phpt | 6 +++--- tests/should_set_log_stream_with_invalid_param.phpt | 6 +++--- tests/should_set_log_stream_with_resource.phpt | 6 +++--- tests/should_set_log_stream_with_string_path.phpt | 6 +++--- tests/should_set_node_value.phpt | 6 +++--- tests/throw_error_when_add_auth.phpt | 6 +++--- tests/throw_error_when_add_auth_without_connect.phpt | 6 +++--- tests/throw_error_when_get_non_existent_node.phpt | 6 +++--- tests/throw_error_when_set_param_in_isrecoverable.phpt | 6 +++--- .../throw_error_when_set_watcher_with_invalid_param.phpt | 6 +++--- 82 files changed, 250 insertions(+), 247 deletions(-) diff --git a/tests/001.phpt b/tests/001.phpt index c335494..13433ca 100644 --- a/tests/001.phpt +++ b/tests/001.phpt @@ -1,7 +1,10 @@ --TEST-- Check for zookeeper presence --SKIPIF-- - + --FILE-- --FILE-- set("server.1=localhost:2888:3888:participant;0.0.0.0:2181"); $zkConfig->add("server.2=localhost:2889:3889:participant;0.0.0.0:2182"); echo $zkConfig->get(); +?> --EXPECTF-- server.1=localhost:2888:3888:participant;0.0.0.0:2181 server.2=localhost:2889:3889:participant;0.0.0.0:2182 diff --git a/tests/ZookeeperConfig/remove.phpt b/tests/ZookeeperConfig/remove.phpt index 50ae89e..97bd28b 100644 --- a/tests/ZookeeperConfig/remove.phpt +++ b/tests/ZookeeperConfig/remove.phpt @@ -2,11 +2,10 @@ ZookeeperConfig::remove(); --SKIPIF-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE--