Open shulard opened 8 years ago
Is it ready for a review?
I think it is ! Based on the current ClassMethod
implementation it introduce the same behaviour but on a given object only...
Same here, I've rebased on master 😄.
Hello @Hywan,
I've rebased my code on master, for me the implementation is done. I've one question about custom object logic during tests.
I've created specific classes in the ObjectMethod.php test file : ObjectMethod_MockObject
, ObjectMethod_MockKit
, ObjectMethod_MockRouter
.
I know that I can mock Router and Kit relatively easily but the ObjectMethod_MockObject
must exists during the test phase. It's a custom object used during dispatcher process and I can't add methods on a mock object.
Is there a cleaner way to handle that ?
Hello !
I've worked on the #16 issue about
ObjectMethod
dispatcher. I tried to use only theobject
logic inside theBasic
dispatcher combined with the refactoredClassMethod
.For the moment it's a first step but there is a lot of duplicated code between the different dispatchers (parameters retrieving, ClassMethod vs ObjectMethod...). I think that we'll discuss about a refactoring when the dispatcher split will be done.