public function testSetCassettePathThrowsErrorOnInvalidPath() { $this->setExpectedException('VCR\\VCRException', "Cassette path 'invalid_path' is not a directory. Please either " . "create it or set a different cassette path using " . "\\VCR\\VCR::configure()->setCassettePath('directory')."); $this->config->setCassettePath('invalid_path'); }