<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -22,6 +22,14 @@ function assert_no_difference($expression, $lambda) {
     assert_equal($value, eval($expression));
 }
 
+function assert_empty($value) {
+    ensure(empty($value));
+}
+
+function assert_not_empty($value) {
+    ensure(!empty($value));
+}
+
 function assert_in_array($needle, $haystack) {
     ensure(in_array($needle, $haystack));
 }</diff>
      <filename>test/test_helper.php</filename>
    </modified>
    <modified>
      <diff>@@ -2,8 +2,19 @@
 
 class CurlTest extends ztest\UnitTestCase {
     
-    function test_this_lib() {
-        fail();
+    function setup() {
+        $this-&gt;curl = new Curl;
+        $this-&gt;response = $this-&gt;curl-&gt;get('www.google.com');
+    }
+    
+    function test_get() {
+        assert_matches('#google#', $this-&gt;response);
+        assert_equal(200, $this-&gt;response-&gt;headers['Status-Code']);
+    }
+    
+    function test_error() {
+        $this-&gt;curl-&gt;get('diaewkaksdljf-invalid-url-dot-com.com');
+        assert_not_empty($this-&gt;curl-&gt;error());
     }
     
 }
\ No newline at end of file</diff>
      <filename>test/unit/curl_test.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8932a14a252243e6ce501079a12220e1395555f1</id>
    </parent>
  </parents>
  <author>
    <name>Sean Huber</name>
    <email>shuber@huberry.com</email>
  </author>
  <url>http://github.com/shuber/curl/commit/d04cbc4374e93f6a6e493c912877d005a676be72</url>
  <id>d04cbc4374e93f6a6e493c912877d005a676be72</id>
  <committed-date>2009-09-07T11:34:04-07:00</committed-date>
  <authored-date>2009-09-07T11:34:04-07:00</authored-date>
  <message>Update unit tests</message>
  <tree>bd6ffbf2b34733e2aef2aad6feb7bf84686c4b00</tree>
  <committer>
    <name>Sean Huber</name>
    <email>shuber@huberry.com</email>
  </committer>
</commit>
