Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
removed 5.3 tests and converted arrays back to short form
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremygiberson committed Aug 9, 2015
1 parent 6dc35bc commit 7d759bc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
],
"require": {
"php": ">=5.3.3",
"php": ">=5.4",
"zendframework/zendframework": ">=2.2.0"
},
"require-dev": {
Expand Down
16 changes: 8 additions & 8 deletions tests/integration/Library/MigrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,32 +28,32 @@ class MigrationTest extends \PHPUnit_Framework_TestCase
protected function setUp()
{
parent::setUp();
$driverConfig = array(
$driverConfig = [
'driver' => getenv('db_type'),
// sqlite handling (if necessary)
'database' => str_replace('%BASE_DIR%', __DIR__ . '/../../../', getenv('db_name')),
'username' => getenv('db_username'),
'password' => getenv('db_password'),
'hostname' => getenv('db_host'),
'port' => getenv('db_port'),
'options' => array(
'options' => [
'buffer_results' => true,
),
);
$config = array(
],
];
$config = [
'dir' => __DIR__ . '/../data/ApplyMigration',
'namespace' => 'ApplyMigration'
);
];

$this->adapter = $adapter = new Adapter($driverConfig);

$metadata = new Metadata($adapter);
$tableNames = $metadata->getTableNames();

$drop_if_exists = array(
$drop_if_exists = [
'test',
MigrationVersion::TABLE_NAME
);
];
foreach($drop_if_exists as $table) {
if(in_array($table,$tableNames)){
// ensure db is in expected state
Expand Down

0 comments on commit 7d759bc

Please sign in to comment.