From 22e31792dcdbc043f457847c3fabe27032765fe1 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Fri, 17 Dec 2010 08:52:15 +0100 Subject: [PATCH] tests for wstatus2 in connected state --- tests/index_wstatus2-connected.phpt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/index_wstatus2-connected.phpt diff --git a/tests/index_wstatus2-connected.phpt b/tests/index_wstatus2-connected.phpt new file mode 100644 index 0000000..1df48e1 --- /dev/null +++ b/tests/index_wstatus2-connected.phpt @@ -0,0 +1,17 @@ +--TEST-- +test Wrt3g_HtmlParser::index_wstatus2() when we have a connection +--FILE-- +index_wstatus2( + file_get_contents('index_wstatus2-connected.htm') + ) +); +--EXPECT-- +array(1) { + ["connection"]=> + string(9) "connected" +} -- 2.30.2