Revision: 531
http://pel.svn.sourceforge.net/pel/?rev=531&view=rev
Author: lsolesen
Date: 2010-02-24 10:29:57 +0000 (Wed, 24 Feb 2010)
Log Message:
-----------
Made sure that it does not throw an exception but fails because it does.
Modified Paths:
--------------
trunk/test/bug1730993.php
Modified: trunk/test/bug1730993.php
===================================================================
--- trunk/test/bug1730993.php 2010-02-24 10:14:14 UTC (rev 530)
+++ trunk/test/bug1730993.php 2010-02-24 10:29:57 UTC (rev 531)
@@ -31,14 +31,16 @@
$tmpfile = dirname(__FILE__) . '/images/bug1730993_tmp.jpg';
$bigfile = dirname(__FILE__) . '/images/bug1730993_large.jpg';
- $jpeg = new PelJpeg($tmpfile); // the error occurs here
- $exif = $jpeg->getExif();
- if ($exif != null) {
- $jpeg1 = new PelJpeg($bigfile);
- $jpeg1->setExif($exif);
- file_put_contents($bigfile, $jpeg1->getBytes());
+ try {
+ $jpeg = new PelJpeg($tmpfile); // the error occurs here
+ $exif = $jpeg->getExif();
+ if ($exif != null) {
+ $jpeg1 = new PelJpeg($bigfile);
+ $jpeg1->setExif($exif);
+ file_put_contents($bigfile, $jpeg1->getBytes());
+ }
+ } catch (Exception $e) {
+ $this->fail('Test should not throw an exception');
}
}
}
-
-?>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
PEL-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pel-commits