Skip to content

Instantly share code, notes, and snippets.

@adamwathan
Created May 2, 2014 20:07
Show Gist options
  • Save adamwathan/459254b8bf210bcaeeca to your computer and use it in GitHub Desktop.
Save adamwathan/459254b8bf210bcaeeca to your computer and use it in GitHub Desktop.
Using an in-memory SQLite for functional testing in Laravel 4
<?php
// app/config/testing/database.php
return [
'default' => 'sqlite',
'connections' => [
'sqlite' => [
'driver' => 'sqlite',
'database' => ':memory:',
'prefix' => '',
]
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment