Alex Filatov
Web Development on Steroids | Symfony, Ruby on Rails, Samsung SmartTV developer
<?php
include(dirname(__FILE__) . '/../../bootstrap/functional.php');
$browser = new sfTestFunctional(new sfBrowser());
$limeTest = $browser->test();
$browser->setHttpHeader("X-Requested-With", "XMLHttpRequest");
$browser->post('/ajax/uri', array('param_name' => 'param_value'))->
with('request')->begin()->
isParameter('module', 'someModule')->
isParameter('action', 'someAction')->
end()->
with('response')->begin()->
isStatusCode(200)->
end();
?>
$browser->setHttpHeader("X-Requested-With", "XMLHttpRequest");
$ git svn clone http://svn.symfony-project.com/branches/1.4 lib/vendor/symfony-1.4
$ git svn rebase
$ git clone git://git-sue.git.sourceforge.net/gitroot/git-sue/git-sue lib/vendor/git-sue $ cd lib/vendor/symfony-1.4 $ ../git-sue/git-svn-update-externals
$ lib/vendor/symfony-1.4/data/bin/symfony -V
PHP Fatal error: require(): Failed opening required '/home/alex/projects/php-projects/sfprojects/project/lib/vendor/symfony/lib/event_dispatcher/sfEventDispatcher.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/alex/projects/php-projects/sfprojects/project/lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php on line 99
$ ../git-sue/git-svn-update-externals
$ lib/vendor/symfony-1.4/data/bin/symfony generate:project {project_name}
register_shutdown_function(create_function('', 'touch("cache/.ignore");
touch("log/.cache");'));
$ ./symfony generate:app {app_name}
$ git init
$ git config user.name {real_name}
$ git config user.email {email_address}
$ # git config user.signingkey {gpg_key}
$ # git remote add origin {repo_url}
~ cache/* !cache/.ignore log/* !log/.ignore
$ touch cache/.ignore log/.ignore
$ git add . $ git commit -a -m 'Initial commit.' $ # git push origin master