<?xml version="1.0" encoding="UTF-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <title>Latest snippets tagged propel lime unittest symfony</title>
  <link rel="alternate" href="http://snippets.prendreuncafe.com/snippets/tagged/propel+lime+unittest+symfony/order_by/date"></link>
  <id>http://snippets.prendreuncafe.com/snippets/tagged/propel+lime+unittest+symfony/order_by/date</id>
  <updated>2008-03-19T17:27:18Z</updated>
  <author>
    <name>Symfony</name>
    <author_email>noreply@symfony-project.com</author_email>
  </author>
<entry>
  <title>[Symfony 1.1 beta] Créer un test unitaire et initialiser Propel</title>
  <link href="http://snippets.prendreuncafe.com/snippet/79"></link>
  <updated>2008-03-19T17:27:18Z</updated>
  <id>79</id>
  <summary type="html">Depuis l'apparition du nouveau système de configuration de Symfony 1.1, voici un boostrap type pour vos tests unitaires nécessitant l'accès à l'environnement Propel :

[code php]
&lt;?php
require_once(dirname(__FILE__).'/../../config/ProjectConfiguration.class.php');
$configuration = ProjectConfiguration::getApplicationConfiguration('main', 'test', true);
include($configuration-&gt;getSymfonyLibDir().'/vendor/lime/lime.php');
sfContext::createInstance($configuration);
[/code]

Pensez cependant à remplacer `main` par le nom de votre application courante (par ex. `frontend`).</summary>
</entry>
</feed>