LimeConstraint.php 835 B

12345678910111213141516171819202122232425262728293031323334
  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. * Base class for all constraints.
  13. *
  14. * @package Lime
  15. * @author Bernhard Schussek <bernhard.schussek@symfony-project.com>
  16. * @version SVN: $Id: LimeConstraint.php 23701 2009-11-08 21:23:40Z bschussek $
  17. */
  18. abstract class LimeConstraint implements LimeConstraintInterface
  19. {
  20. protected
  21. $expected = null;
  22. /**
  23. * Constructor.
  24. *
  25. * @param $expected The value against which the constraint should be tested
  26. */
  27. public function __construct($expected)
  28. {
  29. $this->expected = $expected;
  30. }
  31. }