Hello monks. I have a rather simple question regarding testing and roles. After my reference books and Google have failed me I come to you expert types :)
Assume I have an object $object that I'm playing with in one manner or another. I want to be able to fake that it implements some role such that $object->does('Some::Role') returns true for testing purposes. What is the best way to accomplish this?
EDIT: fixed a grammar typoIn reply to Testing with Roles by tj_thompson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |