Author: caefer
Date: 2010-03-22 14:10:08 +0100 (Mon, 22 Mar 2010)
New Revision: 28672

Modified:
   
plugins/sfImageTransformExtraPlugin/trunk/test/unit/config/sfImageTransformExtraPluginConfigurationTest.php
Log:
Unit Tests for sfImageTransformExtraPluginConfiguration are green again

Modified: 
plugins/sfImageTransformExtraPlugin/trunk/test/unit/config/sfImageTransformExtraPluginConfigurationTest.php
===================================================================
--- 
plugins/sfImageTransformExtraPlugin/trunk/test/unit/config/sfImageTransformExtraPluginConfigurationTest.php
 2010-03-22 13:07:03 UTC (rev 28671)
+++ 
plugins/sfImageTransformExtraPlugin/trunk/test/unit/config/sfImageTransformExtraPluginConfigurationTest.php
 2010-03-22 13:10:08 UTC (rev 28672)
@@ -28,13 +28,11 @@
   public function testInitialize()
   {
     $dispatcher = $this->projectConfiguration->getEventDispatcher();
-    $load_factories = 
count($dispatcher->getListeners('context.load_factories'));
     $change_action = 
count($dispatcher->getListeners('controller.change_action'));
     $changed_source = 
count($dispatcher->getListeners('sf_image_transform.changed_source'));
 
     $this->pluginConfiguration->initialize();
 
-    $this->assertEquals($load_factories + 1, 
count($dispatcher->getListeners('context.load_factories')));
     $this->assertEquals($change_action + 1, 
count($dispatcher->getListeners('controller.change_action')));
     $this->assertEquals($changed_source + 1, 
count($dispatcher->getListeners('sf_image_transform.changed_source')));
   }
@@ -57,14 +55,6 @@
     $this->assertType('sfRawFileCache', 
sfImageTransformExtraPluginConfiguration::getCache());
   }
 
-  public function testRegisterStreamWrapper()
-  {
-    stream_wrapper_unregister('sfImageSource');
-    $event = new sfEvent($this, 'context.load_factories', array());
-    sfImageTransformExtraPluginConfiguration::registerStreamWrapper($event);
-    $this->assertTrue(in_array('sfImageSource', stream_get_wrappers()));
-  }
-
   public function testRemoveOldThumbnails()
   {
     //$event = new sfEvent($this, 'sf_image_transform.changed_source', 
array());

-- 
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.

Reply via email to