createFromFile() public static method

public static createFromFile ( string $filePathAndFilename ) : Asset
$filePathAndFilename string
return Asset
Beispiel #1
0
 /**
  * @test
  */
 public function buildMethodsReturnExpectedValues()
 {
     $file = $this->getAbsoluteAssetFixturePath();
     $asset = Asset::createFromFile($file);
     $constraint = new \PHPUnit_Framework_Constraint_IsType('string');
     $this->assertThat($asset->render(), $constraint);
     $this->assertNotEmpty($asset->render());
     $this->assertThat($asset->build(), $constraint);
     $this->assertNotEmpty($asset->build());
     $this->assertSame($asset, $asset->finalize());
 }