public function testCastingToStringShouldNotThrowException()
{
//$this->setExpectedException('\PHPUnit_Framework_Error_Warning');
$callback = function ($content) {
throw new \Exception('Test');
};
$this->bundle->setCssFilter(new CallbackFilter($callback));
$this->bundle->setJsFilter(new CallbackFilter($callback));
$this->bundle->start();
echo $this->includeAll();
$this->bundle->end();
$this->assertEquals('', @$this->bundle->__toString());
}