![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re^1: Testing Wrapped LDAP Classesby yulivee07 (Sexton) |
on Dec 06, 2016 at 11:13 UTC ( [id://1177301]=note: print w/replies, xml ) | Need Help?? |
Hi stevieb,
thanks for your answer! This looks really good and I tried to integrate this into my code. Yet I still have problems... I have a subroutine in my program called like this: In this case $ldap is a Utils::Ldap::CompanyLdap object. when calling $ldap->searchUser this object writes the users into itself. So with the searchUser call, the object itself is altered. What I tried: I was hoping that be putting the object the way I want it to into my return value, the solution would work. The thing is, I noticed searchUser doesn't really return anything, it only appends to the object-instance. So Mock::Sub returns the right thing, but the code continues to work with the old ldap-object. Any Ideas how to solve this? Greetings and thanks for your insights so far, yulivee
In Section
Seekers of Perl Wisdom
|
|