annotate vendor/phpspec/prophecy/spec/Prophecy/Argument/Token/AnyValuesTokenSpec.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
rev   line source
Chris@0 1 <?php
Chris@0 2
Chris@0 3 namespace spec\Prophecy\Argument\Token;
Chris@0 4
Chris@0 5 use PhpSpec\ObjectBehavior;
Chris@0 6
Chris@0 7 class AnyValuesTokenSpec extends ObjectBehavior
Chris@0 8 {
Chris@0 9 function it_implements_TokenInterface()
Chris@0 10 {
Chris@0 11 $this->shouldBeAnInstanceOf('Prophecy\Argument\Token\TokenInterface');
Chris@0 12 }
Chris@0 13
Chris@0 14 function it_is_last()
Chris@0 15 {
Chris@0 16 $this->shouldBeLast();
Chris@0 17 }
Chris@0 18
Chris@0 19 function its_string_representation_is_star_with_followup()
Chris@0 20 {
Chris@0 21 $this->__toString()->shouldReturn('* [, ...]');
Chris@0 22 }
Chris@0 23
Chris@0 24 function it_scores_any_argument_as_2()
Chris@0 25 {
Chris@0 26 $this->scoreArgument(42)->shouldReturn(2);
Chris@0 27 }
Chris@0 28 }