Skip to content

Instantly share code, notes, and snippets.

@Problematic
Created January 10, 2012 02:19
Show Gist options
  • Save Problematic/1586448 to your computer and use it in GitHub Desktop.
Save Problematic/1586448 to your computer and use it in GitHub Desktop.
Symfony2 runtests script
#!/bin/bash
echo "Truncating ACL class tables..."
php app/console doctrine:query:sql "TRUNCATE acl_classes"
php app/console doctrine:query:sql "TRUNCATE acl_entries"
php app/console doctrine:query:sql "TRUNCATE acl_object_identities"
php app/console doctrine:query:sql "TRUNCATE acl_object_identity_ancestors"
php app/console doctrine:query:sql "TRUNCATE acl_security_identities"
echo "Loading data fixtures..."
php app/console doctrine:fixtures:load --purge-with-truncate
echo "Running phpunit test suites..."
phpunit -c app/ src/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment