createFromUrl() публичный статический Метод

public static createFromUrl ( string $url ) : Asset
$url string
Результат Asset
Пример #1
0
 /**
  * @test
  */
 public function canCreateAssetInstanceFromStaticFileFactoryWithUrl()
 {
     $url = 'http://localhost';
     $asset = Asset::createFromUrl($url);
     $this->assertInstanceOf('FluidTYPO3\\Vhs\\Asset', $asset);
     $this->assertEquals($url, $asset->getPath());
     $this->assertSame(TRUE, $asset->getStandalone());
     $this->assertSame(TRUE, $asset->getExternal());
 }