AnyValueTokenSpec.php 557 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace spec\Prophecy\Argument\Token;
  3. use PhpSpec\ObjectBehavior;
  4. class AnyValueTokenSpec extends ObjectBehavior
  5. {
  6. function it_implements_TokenInterface()
  7. {
  8. $this->shouldBeAnInstanceOf('Prophecy\Argument\Token\TokenInterface');
  9. }
  10. function it_is_not_last()
  11. {
  12. $this->shouldNotBeLast();
  13. }
  14. function its_string_representation_is_star()
  15. {
  16. $this->__toString()->shouldReturn('*');
  17. }
  18. function it_scores_any_argument_as_3()
  19. {
  20. $this->scoreArgument(42)->shouldReturn(3);
  21. }
  22. }