Changeset 28673 for plugins/sfImageTransformExtraPlugin
- Timestamp:
- 03/22/10 14:14:29 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfImageTransformExtraPlugin/trunk/test/unit/lib/source/sfImageSourcePropelTest.php
r28671 r28673 37 37 public function testStream_close() 38 38 { 39 $this->markTestSkipped('No Propel fixture written yet..') 40 //$fh = fopen($this->testSourceUri, 'r');39 $this->markTestSkipped('No Propel fixture written yet..'); 40 //$fh = fopen($this->testSourceUri, ..');; 41 41 //$this->assertTrue(is_resource($fh)); 42 42 //fclose($fh); … … 46 46 public function testStream_eof() 47 47 { 48 $this->markTestSkipped('No Propel fixture written yet..') 49 //$fh = fopen($this->testSourceUri, 'r');48 $this->markTestSkipped('No Propel fixture written yet..'); 49 //$fh = fopen($this->testSourceUri, ..');; 50 50 //$this->assertFalse(feof($fh)); 51 51 //while(!feof($fh)) … … 59 59 public function testStream_flush() 60 60 { 61 $this->markTestSkipped('No Propel fixture written yet..') 62 //$fh = fopen($this->testSourceUri, 'r');61 $this->markTestSkipped('No Propel fixture written yet..'); 62 //$fh = fopen($this->testSourceUri, ..');; 63 63 //$this->assertTrue(fflush($fh)); 64 64 //fclose($fh); … … 67 67 public function testStream_open() 68 68 { 69 $this->markTestSkipped('No Propel fixture written yet..') 70 //$fh = fopen($this->testSourceUri, 'r');69 $this->markTestSkipped('No Propel fixture written yet..'); 70 //$fh = fopen($this->testSourceUri, ..');; 71 71 //$this->assertTrue(is_resource($fh)); 72 72 //fclose($fh); … … 75 75 public function testStream_read() 76 76 { 77 $this->markTestSkipped('No Propel fixture written yet..') 78 //$fh = fopen($this->testSourceUri, 'r');77 $this->markTestSkipped('No Propel fixture written yet..'); 78 //$fh = fopen($this->testSourceUri, ..');; 79 79 //$this->assertEquals(10, strlen(fread($fh, 10))); 80 80 //fclose($fh); … … 83 83 public function testStream_stat() 84 84 { 85 $this->markTestSkipped('No Propel fixture written yet..') 86 //$fh = fopen($this->testSourceUri, 'r');85 $this->markTestSkipped('No Propel fixture written yet..'); 86 //$fh = fopen($this->testSourceUri, ..');; 87 87 //$this->assertTrue(is_array(fstat($fh))); 88 88 //fclose($fh); … … 91 91 public function testUrl_stat() 92 92 { 93 $this->markTestSkipped('No Propel fixture written yet..') 93 $this->markTestSkipped('No Propel fixture written yet..'); 94 94 //$this->assertTrue(is_array(stat($this->testSourceUri))); 95 95 } … … 97 97 public function testBuildURIfromParameters() 98 98 { 99 $this->markTestSkipped('No Propel fixture written yet..') 99 $this->markTestSkipped('No Propel fixture written yet..'); 100 100 //$this->assertEquals('sfImageSource://TestRecord/file#1', sfImageSourcePropel::buildURIfromParameters($this->testParameters)); 101 101 } … … 103 103 protected function setUp() 104 104 { 105 $this->markTestSkipped('No Propel fixture written yet..') 106 //$this->dbh = new Propel_Adapter_Mock('mys ql');105 $this->markTestSkipped('No Propel fixture written yet..'); 106 //$this->dbh = new Propel_Adapter_Mock('mys..');; 107 107 //$this->conn = Propel_Manager::getInstance()->openConnection($this->dbh, 'mysql', true); 108 108 109 109 //if(in_array('sfImageSource', stream_get_wrappers())) 110 110 //{ 111 // stream_wrapper_unregister('sfImageSour ce');111 // stream_wrapper_unregister('sfImageSour..');; 112 112 //} 113 //stream_wrapper_register('sfImageSource', 'sfImageSourceProp el') or die('Failed to register protocol..');113 //stream_wrapper_register('sfImageSource', 'sfImageSourceProp..'); or die('Failed to register protocol..');; 114 114 115 115 //$this->testSourceUri = sfImageSourcePropel::buildURIfromParameters($this->testParameters);