/** * Creates a new cassette. * * @param string $name Name of the cassette. * @param Configuration $config Configuration to use for this cassette. * @param Storage $storage Storage to use for requests and responses. * @throws \VCR\VCRException If cassette name is in an invalid format. */ public function __construct($name, Configuration $config, Storage $storage) { Assertion::string($name, "Cassette name must be a string, " . \gettype($name) . " given."); $this->name = $name; $this->config = $config; $this->storage = $storage; }