Um phpunit unter symfony 1.1 zum laufen zu bringen. Geht man zunächst wie hier beschrieben vor. Man muss jetzt lediglich folgende Zeilen ersetzen, da symfony 1.1 jetzt eine neue Configuration Klasse hat.
define(’SF_ROOT_DIR’, realpath(dirname(_file_).’/../’));
define(’SF_APP’, ‘frontend’);
define(’SF_ENVIRONMENT’, ‘test’);
define(’SF_DEBUG’, true);
require_once SF_ROOT_DIR.DIRECTORY_SEPARATOR.’apps’.
DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.
‘config’.DIRECTORY_SEPARATOR.’config.php’;
ersetzen durch
require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'test', true);
sfContext::createInstance($configuration);
Das wars schon.


0 Antworten über phpunit und symfony 1.1
Bisher gibt es keine Kommentare.