• internal This class is not covered by the backward compatibility promise for PHPUnit
CloneableFinalInstantiable
ImplementsPHPUnit\Framework\MockObject\Builder\Identity
PHPUnit\Framework\MockObject\Builder\InvocationStubber
PHPUnit\Framework\MockObject\Builder\Match
PHPUnit\Framework\MockObject\Builder\MethodNameMatch
PHPUnit\Framework\MockObject\Builder\ParametersMatch
PHPUnit\Framework\MockObject\Builder\Stub
Methods
public __construct(PHPUnit\Framework\MockObject\InvocationHandler $handler, PHPUnit\Framework\MockObject\Matcher $matcher, PHPUnit\Framework\MockObject\ConfigurableMethod $configurableMethods)
public after( $id) : self
public id( $id) : self
public method( $constraint) : self
 
  • throws RuntimeException
public will(PHPUnit\Framework\MockObject\Stub\Stub $stub) : PHPUnit\Framework\MockObject\Builder\Identity
public willReturn( $value, $nextValues) : self
public willReturnArgument( $argumentIndex) : self
public willReturnCallback( $callback) : self
 
    public willReturnMap(array $valueMap) : self
    public willReturnOnConsecutiveCalls( $values) : self
    public willReturnReference( $reference) : self
     
      public willReturnSelf() : self
      public willThrowException(Throwable $exception) : self
      public with( $arguments) : self
       
      • throws RuntimeException
      public withAnyParameters() : self
       
      • throws RuntimeException
      public withConsecutive( $arguments) : self
       
      • throws RuntimeException
      Properties
      private $configurableMethods
       
      • var ConfigurableMethod[]
      private $invocationHandler
       
      • var InvocationHandler
      private $matcher
       
      • var Matcher
      Methods
      private canDefineParameters() : void
       

      Validate that a parameters rule can be defined, throw exceptions otherwise.

      • throws RuntimeException
      private ensureTypeOfReturnValues(array $values) : void
      private getConfiguredMethod() : PHPUnit\Framework\MockObject\ConfigurableMethod
      © 2020 Bruce Wells
      Search Namespaces \ Classes
      ConfigurationNumbers (0-9.) only