LimeMockInvocationMatcherAny.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /*
  3. * This file is part of the Lime test framework.
  4. *
  5. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  6. * (c) Bernhard Schussek <bernhard.schussek@symfony-project.com>
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  11. /**
  12. * Requires a method call to be invoked any time.
  13. *
  14. * This matcher always passes.
  15. *
  16. * @package Lime
  17. * @author Bernhard Schussek <bernhard.schussek@symfony-project.com>
  18. * @version SVN: $Id: LimeMockInvocationMatcherAny.php 23701 2009-11-08 21:23:40Z bschussek $
  19. * @see LimeMockInvocationMatcherInterface
  20. */
  21. class LimeMockInvocationMatcherAny implements LimeMockInvocationMatcherInterface
  22. {
  23. /**
  24. * (non-PHPdoc)
  25. * @see mock/matcher/LimeMockInvocationMatcherInterface#invoke($invocation)
  26. */
  27. public function invoke(LimeMockInvocation $invocation)
  28. {
  29. }
  30. /**
  31. * (non-PHPdoc)
  32. * @see mock/matcher/LimeMockInvocationMatcherInterface#isInvokable()
  33. */
  34. public function isInvokable()
  35. {
  36. return true;
  37. }
  38. /**
  39. * (non-PHPdoc)
  40. * @see mock/matcher/LimeMockInvocationMatcherInterface#isSatisfied()
  41. */
  42. public function isSatisfied()
  43. {
  44. return true;
  45. }
  46. /**
  47. * (non-PHPdoc)
  48. * @see mock/matcher/LimeMockInvocationMatcherInterface#getMessage()
  49. */
  50. public function getMessage()
  51. {
  52. return '';
  53. }
  54. }