public function testGetContentLength() { $a = new Asset($this->file); $this->assertSame(7, $a->getContentLength()); $a->setContent('foo_bar_baz'); $this->assertSame(11, $a->getContentLength()); }
public function testFilterAsset() { $a = new Asset(); $a->setContent('content'); $f = new UpperCaseFilter(); $f->filterAsset($a); $this->assertEquals('CONTENT', $a->getContent()); }
public function filterAsset(Asset &$a) { $a->setContent(strtoupper($a->getContent())); }