function testReturnsFalseIfConnectingToWrongHostOrPort()
 {
     $sock = new P2Mixi_TinyHttpSocket("t.a.b.c.beq", 80);
     Assert::equalsFalse($sock->connect());
     $sock = new P2Mixi_TinyHttpSocket("www.example.com", 1);
     $sock->timeout = 3;
     Assert::equalsFalse($sock->connect());
 }
 function test_returns_false_if_connecting_to_wrong_host_or_port()
 {
     $sock = new P2Mixi_TinyHttpSocket("t.a.b.c.beq", 80);
     Assert::equalsFalse($sock->connect());
     $sock = new P2Mixi_TinyHttpSocket("www.example.com", 1);
     $sock->timeout = 3;
     Assert::equalsFalse($sock->connect());
 }