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