I have installed SimpleTest 1.0.1beta and Swift 3.0.1.
I tried running the tests with the following results, I am not sure why I am getting so many errors, and why nobody else is getting the same errors.
All Swift Authenticator Tests
6/6 test cases complete: 30 passes, 0 fails and 0 exceptions.
All Swift MIME Tests
10/10 test cases complete: 973 passes, 0 fails and 0 exceptions.
All Swift Connection Tests
Fatal error: Class 'Swift_Connection_Exception' not found in C:\Apache2\webdev\swiftmailer\lib\Swift.php on line 375
All Swift Core Tests
Exception: TestOfDiskCache -> testDataWrittenToCacheIsRetreivable -> Unexpected PHP error [Invalid argument supplied for foreach()] severity [E_WARNING] in [C:\Apache2\webdev\swiftmailer\tests\units\testcases\TestOfDiskCache.php line 7]
Exception: TestOfDiskCache -> testCacheOnlyReportsToHaveCachedData -> Unexpected PHP error [Invalid argument supplied for foreach()] severity [E_WARNING] in [C:\Apache2\webdev\swiftmailer\tests\units\testcases\TestOfDiskCache.php line 7]
Exception: TestOfDiskCache -> testPutIsABuffer -> Unexpected PHP error [Invalid argument supplied for foreach()] severity [E_WARNING] in [C:\Apache2\webdev\swiftmailer\tests\units\testcases\TestOfDiskCache.php line 7]
Exception: TestOfDiskCache -> testCacheKeyCanBeCleared -> Unexpected PHP error [Invalid argument supplied for foreach()] severity [E_WARNING] in [C:\Apache2\webdev\swiftmailer\tests\units\testcases\TestOfDiskCache.php line 7]
Exception: TestOfDiskCache -> testCacheKeyCanBeCleared -> Unexpected PHP error [Invalid argument supplied for foreach()] severity [E_WARNING] in [C:\Apache2\webdev\swiftmailer\lib\Swift\Cache\Disk.php line 119]
Exception: TestOfDiskCache -> testReturnedOutputStreamIsJustAWrapper -> Unexpected PHP error [Invalid argument supplied for foreach()] severity [E_WARNING] in [C:\Apache2\webdev\swiftmailer\tests\units\testcases\TestOfDiskCache.php line 7]
Fatal error: Class 'Swift_FileException' not found in C:\Apache2\webdev\swiftmailer\lib\EasySwift.php on line 735
[FIXED] Fails alot of tests
Moderators: Chris Corbyn, General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
EDIT | Failing that, pull a new checkout from subversion https://swiftmailer.svn.sourceforge.net ... runk/php5/I in reply to your e-mail wrote:Hi,
Those lines are from the return value of glob() which suggests the data was never written to disk. I've added an (array) cast to prevent the notices showing in such cases, but can you check that tests/tmp/ is writable to the web user before running the tests?
Best Regards,
Chris
(I just made a couple of adjustments, although I don't get those fatal errors. Can you post your PHP version if that fixes things?)