/** * Set the service catalog. * * @param mixed $catalog * @return $this */ public function setCatalog($catalog) { $this->catalog = Catalog::factory($catalog); return $this; }
/** * @expectedException OpenCloud\Common\Exceptions\InvalidArgumentError */ public function test_Catalog_Fails_Without_Correct_Type() { Catalog::factory(null); }