Nelmio\Alice\FixtureInterface::withSpecs PHP 메소드

withSpecs() 공개 메소드

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

Usage Example

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