Example #1
0
 /**
  * Create a new Embed instance.
  *
  * @param  array  $url
  * @param  array  $options  Extra options like iframe attributes or params.
  * @return Cohenisve\Embed\Embed
  */
 public function make($url = null, $options = null)
 {
     $embed = new Embed($url, $options);
     $embed->setProviders($this->providers);
     $embed->setSSL($this->ssl);
     return $embed;
 }
Example #2
0
 public function testEmbedProviderSetting()
 {
     $embed = new Embed();
     $providers = (require 'src/config/config.php');
     $embed->setProviders($providers['providers']);
     $this->assertEquals($providers['providers'], $embed->getProviders());
 }