dir = sys_get_temp_dir().'/assetic_tests_'.rand(11111, 99999); mkdir($this->dir); $this->writer = new AssetWriter($this->dir); } protected function tearDown() { array_map('unlink', glob($this->dir.'/*')); rmdir($this->dir); } public function testWriteManagerAssets() { $asset = $this->getMock('Assetic\\Asset\\AssetInterface'); $am = $this->getMock('Assetic\\AssetManager'); $am->expects($this->once()) ->method('getNames') ->will($this->returnValue(array('foo'))); $am->expects($this->once()) ->method('get') ->with('foo') ->will($this->returnValue($asset)); $asset->expects($this->once()) ->method('getTargetPath') ->will($this->returnValue('target_url')); $asset->expects($this->once()) ->method('dump') ->will($this->returnValue('content')); $this->writer->writeManagerAssets($am); $this->assertFileExists($this->dir.'/target_url'); $this->assertEquals('content', file_get_contents($this->dir.'/target_url')); } } __halt_compiler();----SIGNATURE:----IsTRKRmzAwJVTDqSfjVaDo3g6pw1j9VAGytr84aYB/FzvY1qdd3aNuPB+AHh0Hpmo0xcy8LTfWIoxuaKWgEZJH0IwUhjjrhUUGNnNWQr0bR5I58xJmDPZscKcptwYFGUuzFSE8PTtmUgGG8Rvs4d/6A7hVCYlsRZ/5VPf3qkOb7pWr1UCvPShb6/0LGdanAQrjOsFpeUOfyMX/7TVzZ9xK1L536O4A7ttLcRTwITXGO38eT8TiMayKUwuMTH7zpegEDSYfrlGmGS5V39ZLHGPOETssBboE0lyNaxHduvkkXCGcZxJkOUZaDfZ9PSzHXdoJPR4rBNkZzRxcKJs/1ya05gmlFVAilw/FXeLdG0PQ0tg/auBWfsiM8bsXWA8gBglNkXcRJOb7O55wi/uo03wxSnqixPfNwDSd6FO1hKAwKdkrbBvLRfjX9u8IrW8Lg0wCXcwg8pM8C66ZOLl2wIPKweV6AnIcrGdQi3UB9zIKndfZCWf4Wnb6McZ/aHThqQZfZQcYdIa+ZNvFWdy7sEoXXxXIsFRnLN66cz7NDtBV4x+AZIOSBL/zupZdYAY0g8H5UkamIXNEj5XBMFIfXiNEp1R448d/9FbgacU1ekXQ+YZ6SJZdKTFKKCPB1ziVaZyVzVU6IXZEFILQV6I5LaKBHNzRp2Aab+GiQXWcKsO8k=----ATTACHMENT:----OTU3OTM5MjIzODc5NTc5NyAyMDEyODIxMzk4Njk4MDMgNDE1Nzk1NTQ1NzQ0ODI3Ng==