diff --git a/test/ConnectionManagerTest.php b/test/ConnectionManagerTest.php index ca29b0452..2dc36111a 100644 --- a/test/ConnectionManagerTest.php +++ b/test/ConnectionManagerTest.php @@ -10,7 +10,7 @@ public function test_get_connection_with_null_connection() $this->assert_not_null(ConnectionManager::get_connection(null)); $this->assert_not_null(ConnectionManager::get_connection()); } - + public function test_get_connection() { $this->assert_not_null(ConnectionManager::get_connection('mysql')); @@ -24,16 +24,15 @@ public function test_get_connection_uses_existing_object() $this->assert_same($a,ConnectionManager::get_connection('mysql')); } - public function test_gh_91_get_connection_with_null_connection_is_always_default() - { - $conn_one = ConnectionManager::get_connection('mysql'); - $conn_two = ConnectionManager::get_connection(); - $conn_three = ConnectionManager::get_connection('mysql'); - $conn_four = ConnectionManager::get_connection(); + public function test_gh_91_get_connection_with_null_connection_is_always_default() + { + $conn_one = ConnectionManager::get_connection('mysql'); + $conn_two = ConnectionManager::get_connection(); + $conn_three = ConnectionManager::get_connection('mysql'); + $conn_four = ConnectionManager::get_connection(); - $this->assert_same($conn_one, $conn_three); - $this->assert_same($conn_two, $conn_three); - $this->assert_same($conn_four, $conn_three); - } + $this->assert_same($conn_one, $conn_three); + $this->assert_same($conn_two, $conn_three); + $this->assert_same($conn_four, $conn_three); + } } -?>