Bootstrap of phpRack Framework
You should create a phprack.php file your public_html directory and put something similar into it:
<?php // Global variable with params required by PhpRack bootstrap script $phpRackConfig = array( // if you want to protect you phpRack installation 'auth' => array( 'username' => 'alex', 'password' => 'j7L9Kj8H', 'onlySSL' => false, // you enable connection to phpRack front only through SSL? ), // if you want to receive notifications when phpRack suite is failed 'notify' => array( // email notifications 'email' => array( // omit this element if you use normal sendmail 'transport' => array( 'class' => 'smtp', // either "smtp" or "sendmail" 'host' => 'smtp.gmail.com', 'port' => '25', // in case with "tls" option, can be 465, or other. Encrypted by default 'tls' => false, // you can set this option to use TLS or SSL by default 'username' => 'alex', 'password' => 'j7L9Kj8H', ), // notify this email when test suite fails. // you can use multiple addresses. Just put them as array 'recipients' => 'admin@example.com' ), ), 'dir' => '../rack-tests', // where your rack tests are located, path related to the location of this file ); // absolute path to the bootstrap script include '../library/phpRack/bootstrap.php';
That's it.
