Nelmio\Alice\FixtureInterface::withSpecs PHP Method

withSpecs() public method

Creates a new instance with the given specs.
public withSpecs ( SpecificationBag $specs ) : static
$specs Nelmio\Alice\Definition\SpecificationBag
return static
    public function withSpecs(SpecificationBag $specs);

Usage Example

Esempio n. 1
0
 /**
  * @inheritdoc
  */
 public function withSpecs(SpecificationBag $specs) : self
 {
     $clone = clone $this;
     $clone->fixture = $this->fixture->withSpecs($specs);
     return $clone;
 }