Permalink
Browse files

Added var_dump to show better example of expected output

  • Loading branch information...
1 parent d09c0ea commit 4298a98744c1ba3bbe145a29cfbf139a1a9839d4 @hm2k hm2k committed Feb 1, 2012
Showing with 54 additions and 2 deletions.
  1. +54 −2 tests/test_member.phpt
View
@@ -33,19 +33,71 @@ $mailman->request->setAdapter($mock);
// success
try {
- $mailman->member('james');
+ var_dump($mailman->member('james'));
} catch (Services_Mailman_Exception $e) {
echo 'Caught exception: ', $e->getMessage(), "\n";
}
// fail
try {
- $mailman->member('fail');
+ var_dump($mailman->member('fail'));
} catch (Services_Mailman_Exception $e) {
echo 'Caught exception: ', $e->getMessage(), "\n";
}
?>
--EXPECT--
+array(2) {
+ [0]=>
+ array(11) {
+ ["address"]=>
+ string(25) "james.smith@example.co.uk"
+ ["realname"]=>
+ string(0) ""
+ ["mod"]=>
+ string(3) "off"
+ ["hide"]=>
+ string(3) "off"
+ ["nomail"]=>
+ string(3) "off"
+ ["ack"]=>
+ string(3) "off"
+ ["notmetoo"]=>
+ string(3) "off"
+ ["nodupes"]=>
+ string(2) "on"
+ ["digest"]=>
+ string(3) "off"
+ ["plain"]=>
+ string(2) "on"
+ ["language"]=>
+ string(2) "en"
+ }
+ [1]=>
+ array(11) {
+ ["address"]=>
+ string(25) "james.jones@example.co.uk"
+ ["realname"]=>
+ string(0) ""
+ ["mod"]=>
+ string(3) "off"
+ ["hide"]=>
+ string(3) "off"
+ ["nomail"]=>
+ string(3) "off"
+ ["ack"]=>
+ string(3) "off"
+ ["notmetoo"]=>
+ string(3) "off"
+ ["nodupes"]=>
+ string(3) "off"
+ ["digest"]=>
+ string(2) "on"
+ ["plain"]=>
+ string(3) "off"
+ ["language"]=>
+ string(2) "en"
+ }
+}
Caught exception: No match.

0 comments on commit 4298a98

Please sign in to comment.