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

public static getInstance ( ) : Asset
Результат Asset
Пример #1
0
 /**
  * @test
  */
 public function supportsChainingInAllSettersWithFakeNullArgument()
 {
     $asset = Asset::getInstance();
     $settableProperties = ObjectAccess::getSettablePropertyNames($asset);
     foreach ($settableProperties as $propertyName) {
         $setter = 'set' . ucfirst($propertyName);
         $asset = $asset->{$setter}(NULL);
         $this->assertInstanceOf('FluidTYPO3\\Vhs\\Asset', $asset, 'The ' . $setter . ' method does not support chaining');
     }
 }