Author: caefer
Date: 2010-03-22 14:33:57 +0100 (Mon, 22 Mar 2010)
New Revision: 28674
Modified:
plugins/sfImageTransformExtraPlugin/trunk/test/unit/lib/transforms/sfImageTransformManagerTest.php
Log:
Unit Tests for sfImageTransformManager are green again
Modified:
plugins/sfImageTransformExtraPlugin/trunk/test/unit/lib/transforms/sfImageTransformManagerTest.php
===================================================================
---
plugins/sfImageTransformExtraPlugin/trunk/test/unit/lib/transforms/sfImageTransformManagerTest.php
2010-03-22 13:14:29 UTC (rev 28673)
+++
plugins/sfImageTransformExtraPlugin/trunk/test/unit/lib/transforms/sfImageTransformManagerTest.php
2010-03-22 13:33:57 UTC (rev 28674)
@@ -54,14 +54,7 @@
public function testGenerate()
{
$manager = new sfImageTransformManager($this->dummy_formats);
- $this->assertType('sfImage', $manager->generate(
- array(
- 'format' => 'original',
- 'type' => 'TestFile',
- 'attribute' => 'file',
- 'id' => '1'
- )
- ));
+ $this->assertType('sfImage',
$manager->generate('sfImageSource://TestFile/file#1', 'original'));
}
protected function setUp()
@@ -71,5 +64,11 @@
$configuration = new
ProjectConfiguration(dirname(__FILE__).'/../../fixtures/project');
sfContext::createInstance($configuration->getApplicationConfiguration('frontend',
'test', true));
}
+
+ if(in_array('sfImageSource', stream_get_wrappers()))
+ {
+ stream_wrapper_unregister('sfImageSource');
+ }
+ stream_wrapper_register('sfImageSource', 'sfImageSourceMock') or
die('Failed to register protocol..');
}
}
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.