troubles testing with simpletest

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
giles
Forum Commoner
Posts: 34
Joined: Thu Sep 14, 2006 2:34 pm

troubles testing with simpletest

Post by giles »

Hi All,

I'm in the middle of setting up Swift Mailer for the first time, I'm following the read me that came with the install. Ive renamed lib file as swift and located it outside my webroot - I've placed the tests folder inside my site renamed swift_tests. Ive run the Smoke Tests no problem, but now I'm stuck with simpletest.

I've placed the simpletest folder inside the swift_tests folder and ammended testConfiguration.php accordingly (SIMPLETEST_PATH = "/simpletest") I'm now pointing my browser to mysite/online/swift_tests/units/runAllAuthenticatorTests.php - I'm expecting to see some form of simpleTest result, but I'm seeing nothing ... like my browser window is empty!

I'm now stuck - can you help me?

Thanks ihn advance
Giles
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

If the simpletest folder is inside swift_tests then the path should not start with a "/". /path/to/somewhere is absolute, within the server's filesystem. Specify the actual absolute path to simpletest :)
giles
Forum Commoner
Posts: 34
Joined: Thu Sep 14, 2006 2:34 pm

Post by giles »

thanks for your response. I've tried your suggestion of an absolute file path from the server root, I've also tried placing a copy of simpletest (e.g. const SIMPLETEST_PATH = "../../../../simpletest") in the same lacation as swift (e.g. const SWIFT_LIBRARY_PATH = "../../../../swift") which I know works as I could run the smoke tests, but I'm still getting the same result
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Based on this path: mysite/online/swift_tests/units/runAllAuthenticatorTests.php

If simpletest was placed at: mysite/online/swift_tests/simpletest

Your SIMPLETEST_PATH should be ".." (two dots). The path is relative to the test runner file. A blank screen is usually a sign that there was an error. Simpletest may be masking the errors itself. Maybe you're running out of memory.... the tests do use quite a lot of memory so if your PHP memory_limit is less than 8MB you may not have much luck. I assume you're running PHP5?
giles
Forum Commoner
Posts: 34
Joined: Thu Sep 14, 2006 2:34 pm

Post by giles »

Hey Chris,

thanks for your last advice. I would have gotten back earlier but I became a dad a couple of weeks ago and I've been a little tide up (no S**t). OK I'm cleared up on filepaths, Yup I'm on PHP 5 and I've just bumped memory_limit to 16M. Unfortunatly I'm still in the same spot with only a selection of individual unit tests working. Any further suggestions?

I've been running swiftmailer for a month or so on test. It's working fine with the likes of, bt, freeserve, fsnet, gmail, ntl, tiscali etc but I'm getting a problem with AOL users ... I'm wondering could the two problems be related?

I'd REALLY be in your debt form any help
Cheers
Post Reply