mirror of
				https://github.com/fenom-template/fenom.git
				synced 2023-08-10 21:13:07 +03:00 
			
		
		
		
	Back tests to php 5.3
This commit is contained in:
		| @@ -119,17 +119,17 @@ class FenomTest extends \Fenom\TestCase | |||||||
|     { |     { | ||||||
|         $punit = $this; |         $punit = $this; | ||||||
|         $this->fenom->addPreFilter(function ($src, $tpl) use ($punit) { |         $this->fenom->addPreFilter(function ($src, $tpl) use ($punit) { | ||||||
|             $this->assertInstanceOf('Fenom\Template', $tpl); |             $punit->assertInstanceOf('Fenom\Template', $tpl); | ||||||
|             return "== $src =="; |             return "== $src =="; | ||||||
|         }); |         }); | ||||||
|  |  | ||||||
|         $this->fenom->addPostFilter(function ($code, $tpl) use ($punit) { |         $this->fenom->addPostFilter(function ($code, $tpl) use ($punit) { | ||||||
|             $this->assertInstanceOf('Fenom\Template', $tpl); |             $punit->assertInstanceOf('Fenom\Template', $tpl); | ||||||
|             return "+++ $code +++"; |             return "+++ $code +++"; | ||||||
|         }); |         }); | ||||||
|  |  | ||||||
|         $this->fenom->addFilter(function ($text, $tpl) use ($punit) { |         $this->fenom->addFilter(function ($text, $tpl) use ($punit) { | ||||||
|             $this->assertInstanceOf('Fenom\Template', $tpl); |             $punit->assertInstanceOf('Fenom\Template', $tpl); | ||||||
|             return "|--- $text ---|"; |             return "|--- $text ---|"; | ||||||
|         }); |         }); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 bzick
					bzick