Unit-Testing OpenID integration
| From: | Christian Weiske | Date: | Fri, 27 Jan 2012 07:02:27 +0000 |
| Subject: | Unit-Testing OpenID integration | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-31396@lists.php.net to get a copy of this message | ||
Hi,
I'm using PEAR's OpenID package in a project of mine and want to
add unittests for the integration now.
Tests like
- Sucessful login
- Cancelled login
- Errorneous login (outdated nonce or so)
- Successful login with SREG (Simple registration) data
- Successful login with AX (Attribute exchange) data
What's the best way to tackle this? I'd love to see some example code.
I've found http://stackoverflow.com/q/5258954/282601 which
talks about
Zend's OpenID lib, but I hope someone already used Unit testes
with PEAR's OpenID.
--
Regards/Mit freundlichen Grüßen
Christian Weiske
-=≡ Geeking around in the name of science since 1982 ≡=-
Attachment: [application/pgp-signature] signature.asc
Attachment: [application/pgp-signature] signature.asc