AnyValuesTokenSpec.php 573 B

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