One Hat Cyber Team
Your IP :
216.73.216.80
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
nosc
/
public_html
/
Swift
/
tests
/
View File Name :
README_FIRST
These tests cover various important aspects of Swift Mailer. For those of you who aren't seriously into testing, you'll probably just want to run the smoke tests since these are visual tests with graphics and all you need to do is compare the results. There are also some benchmarks, and some unit tests included. BEFORE YOU CAN DO ANYTHING, YOU MUST SET UP THE TEST ENVIRONMENT Setting up the test environment ------------------------------- YOU NEED SIMPLETEST INSTALLED SOMEWHERE ALREADY FOR THE UNITS! 1. CHMOD tests/tmp/ to be writable to the web user: - $ chmod 0777 ./tests/tmp 2. Extract the files in tests/files/extract_these_first.tar.bz2 used as pretend attachments: - $ cd ./tests/files - $ tar xvjf extract_these_first.tar.bz2 3. Edit the TestConfiguration.php file. It contains things such as the simpletest path and addresses to use in sending for the smoke tests. Running the Smoke Tests ------------------------- The smoke tests are easy. They're just visual tests. Simply open up the files in test/smokes/ in your web browser and follow the instructions on the screen. Running the Unit Tests ----------------------- The unit tests require you to have simpletest installed. http://www.sourceforge.net/projects/simpletest/ In the tests/units/ directory you will find all the test runner files. There are over 30 test cases. To run the tests in groups, there are runAll*.php files: runAllMimeTests.php, runAllCoreTests.php, runAllConnectionTests.php, runAllAuthenticatorTests.php A green bar indicates everything is ok. A red bar indicates a failure. Running the Benchmarks ------------------------ YOU NEED THE XDEBUG2 PHP EXTENSION TO RUN THE BENCHMARKS There are 3 benchmark files included in tests/benchmarks/. These will actually send emails to the addresses given in the TestConfiguration.php files. If you don't have Xdebug2 installed, you can get it from PECL using: - $ pecl install xdebug-2.0.0RC3 - End of file -