This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BarfooArticleForm extends BaseBarfooArticleForm | |
{ | |
public function configure() | |
{ | |
$file_src = sfContext::getInstance()->getController()->genUrl(array( | |
'sf_route' => 'sf_image_barfooarticle_top', | |
'format' => 'backend_edit', | |
'slug' => $this->getObject()->slug, | |
'id' => $this->getObject()->id | |
), false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project name="sfImageTransformExtraPlugin" default="build" basedir="."> | |
<!-- checking out dependencies in parallel to sfImageTransformExtraPlugins sources --> | |
<target name="update"> | |
<exec executable="svn"> | |
<arg line="checkout http://svn.symfony-project.org/branches/1.4/lib ../symfony"/> | |
</exec> | |
<exec executable="svn"> | |
<arg line="checkout http://svn.symfony-project.org/plugins/sfImageTransformPlugin/trunk ../sfImageTransformPlugin"/> | |
</exec> | |
</target> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<phpunit backupGlobals="false" | |
backupStaticAttributes="true" | |
bootstrap="test/bootstrap/unit.php" | |
colors="false" | |
convertErrorsToExceptions="true" | |
convertNoticesToExceptions="true" | |
convertWarningsToExceptions="true" | |
processIsolation="true" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* There are a bunch of auto-generated TestCases. | |
* | |
* * All test methods are empty except for a $this->markTestIncomplete(..). | |
* * Some TestCases have no test methods yet. | |
* | |
* On execution of phpunit I get the following: | |
*/ | |
$ phpunit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function setUp() | |
{ | |
$configuration = ProjectConfiguration::getActive(); | |
$databaseManager = new sfDatabaseManager($configuration); | |
$dbh = new Doctrine_Adapter_Mock('sqlite'); | |
$this->conn = Doctrine_Manager::getInstance()->openConnection($dbh, 'doctrine', true); | |
Doctrine_Manager::getInstance()->createDatabases('doctrine'); | |
Doctrine_Core::createTablesFromArray(array('TestRecord')); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function setUp() | |
{ | |
$configuration = ProjectConfiguration::getActive(); | |
$databaseManager = new sfDatabaseManager($configuration); | |
$dbh = new Doctrine_Adapter_Mock('sqlite'); | |
$this->conn = Doctrine_Manager::getInstance()->openConnection($dbh, 'doctrine', true); | |
Doctrine_Manager::getInstance()->createDatabases('doctrine'); | |
Doctrine_Core::createTablesFromArray(array('TestRecord')); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configuration = ProjectConfiguration::getActive(); | |
$databaseManager = new sfDatabaseManager($configuration); | |
Doctrine_Manager::getInstance()->createDatabases('doctrine'); | |
Doctrine_Core::createTablesFromArray(array('TestRecord')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$configuration = ProjectConfiguration::getActive(); | |
$databaseManager = new sfDatabaseManager($configuration); | |
$dbh = new Doctrine_Adapter_Mock('sqlite'); | |
$conn = Doctrine_Manager::getInstance()->openConnection($dbh, 'doctrine', true); | |
Doctrine_Manager::getInstance()->createDatabases('doctrine'); | |
Doctrine_Core::createTablesFromArray(array('TestRecord')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Petition: | |
columns: | |
name: { type: string(24), minlength: 3 } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class petitionComponents extends sfComponents | |
{ | |
public function executeForm(sfWebRequest $request) | |
{ | |
$this->form = new PetitionForm(); | |
$this->redirect_to = $request->getGetParameter('redirect_to', str_replace($request->getUriPrefix(), '', $request->getUri())); |