From 3dec2a998ccc1decc88b8c9d0206535a37f4ffd4 Mon Sep 17 00:00:00 2001 From: Patrick Brouwers Date: Thu, 17 Sep 2015 11:22:00 -0400 Subject: [PATCH] Applied fixes from StyleCI --- .../Connections/MysqlConnectionTest.php | 18 +++++++++--------- .../Connections/OracleConnectionTest.php | 16 ++++++++-------- .../Connections/PgsqlConnectionTest.php | 18 +++++++++--------- .../Connections/SqlsrvConnectionTest.php | 14 +++++++------- tests/Extensions/MappingDriverChainTest.php | 8 ++++---- 5 files changed, 37 insertions(+), 37 deletions(-) diff --git a/tests/Configuration/Connections/MysqlConnectionTest.php b/tests/Configuration/Connections/MysqlConnectionTest.php index bc1e8ba4..b2835c03 100644 --- a/tests/Configuration/Connections/MysqlConnectionTest.php +++ b/tests/Configuration/Connections/MysqlConnectionTest.php @@ -37,15 +37,15 @@ public function test_can_resolve() $resolved = $this->connection->resolve(); - $this->assertEquals('pdo_mysql', $resolved['driver']); - $this->assertEquals('host', $resolved['host']); - $this->assertEquals('database', $resolved['dbname']); - $this->assertEquals('username', $resolved['user']); - $this->assertEquals('password', $resolved['password']); - $this->assertEquals('charset', $resolved['charset']); - $this->assertEquals('port', $resolved['port']); - $this->assertEquals('unix_socket', $resolved['unix_socket']); - $this->assertEquals('prefix', $resolved['prefix']); + $this->assertEquals('pdo_mysql', $resolved['driver']); + $this->assertEquals('host', $resolved['host']); + $this->assertEquals('database', $resolved['dbname']); + $this->assertEquals('username', $resolved['user']); + $this->assertEquals('password', $resolved['password']); + $this->assertEquals('charset', $resolved['charset']); + $this->assertEquals('port', $resolved['port']); + $this->assertEquals('unix_socket', $resolved['unix_socket']); + $this->assertEquals('prefix', $resolved['prefix']); } protected function tearDown() diff --git a/tests/Configuration/Connections/OracleConnectionTest.php b/tests/Configuration/Connections/OracleConnectionTest.php index 99b26c70..895f8c2a 100644 --- a/tests/Configuration/Connections/OracleConnectionTest.php +++ b/tests/Configuration/Connections/OracleConnectionTest.php @@ -36,14 +36,14 @@ public function test_can_resolve() $resolved = $this->connection->resolve(); - $this->assertEquals('oci8', $resolved['driver']); - $this->assertEquals('host', $resolved['host']); - $this->assertEquals('database', $resolved['dbname']); - $this->assertEquals('username', $resolved['user']); - $this->assertEquals('password', $resolved['password']); - $this->assertEquals('charset', $resolved['charset']); - $this->assertEquals('port', $resolved['port']); - $this->assertEquals('prefix', $resolved['prefix']); + $this->assertEquals('oci8', $resolved['driver']); + $this->assertEquals('host', $resolved['host']); + $this->assertEquals('database', $resolved['dbname']); + $this->assertEquals('username', $resolved['user']); + $this->assertEquals('password', $resolved['password']); + $this->assertEquals('charset', $resolved['charset']); + $this->assertEquals('port', $resolved['port']); + $this->assertEquals('prefix', $resolved['prefix']); } protected function tearDown() diff --git a/tests/Configuration/Connections/PgsqlConnectionTest.php b/tests/Configuration/Connections/PgsqlConnectionTest.php index a3ffae4a..30d77c00 100644 --- a/tests/Configuration/Connections/PgsqlConnectionTest.php +++ b/tests/Configuration/Connections/PgsqlConnectionTest.php @@ -37,15 +37,15 @@ public function test_can_resolve() $resolved = $this->connection->resolve(); - $this->assertEquals('pdo_pgsql', $resolved['driver']); - $this->assertEquals('host', $resolved['host']); - $this->assertEquals('database', $resolved['dbname']); - $this->assertEquals('username', $resolved['user']); - $this->assertEquals('password', $resolved['password']); - $this->assertEquals('charset', $resolved['charset']); - $this->assertEquals('port', $resolved['port']); - $this->assertEquals('sslmode', $resolved['sslmode']); - $this->assertEquals('prefix', $resolved['prefix']); + $this->assertEquals('pdo_pgsql', $resolved['driver']); + $this->assertEquals('host', $resolved['host']); + $this->assertEquals('database', $resolved['dbname']); + $this->assertEquals('username', $resolved['user']); + $this->assertEquals('password', $resolved['password']); + $this->assertEquals('charset', $resolved['charset']); + $this->assertEquals('port', $resolved['port']); + $this->assertEquals('sslmode', $resolved['sslmode']); + $this->assertEquals('prefix', $resolved['prefix']); } protected function tearDown() diff --git a/tests/Configuration/Connections/SqlsrvConnectionTest.php b/tests/Configuration/Connections/SqlsrvConnectionTest.php index e8ac2cb8..796d1c6c 100644 --- a/tests/Configuration/Connections/SqlsrvConnectionTest.php +++ b/tests/Configuration/Connections/SqlsrvConnectionTest.php @@ -35,13 +35,13 @@ public function test_can_resolve() $resolved = $this->connection->resolve(); - $this->assertEquals('pdo_sqlsrv', $resolved['driver']); - $this->assertEquals('host', $resolved['host']); - $this->assertEquals('database', $resolved['dbname']); - $this->assertEquals('username', $resolved['user']); - $this->assertEquals('password', $resolved['password']); - $this->assertEquals('port', $resolved['port']); - $this->assertEquals('prefix', $resolved['prefix']); + $this->assertEquals('pdo_sqlsrv', $resolved['driver']); + $this->assertEquals('host', $resolved['host']); + $this->assertEquals('database', $resolved['dbname']); + $this->assertEquals('username', $resolved['user']); + $this->assertEquals('password', $resolved['password']); + $this->assertEquals('port', $resolved['port']); + $this->assertEquals('prefix', $resolved['prefix']); } protected function tearDown() diff --git a/tests/Extensions/MappingDriverChainTest.php b/tests/Extensions/MappingDriverChainTest.php index 83e3990f..5b0341ea 100644 --- a/tests/Extensions/MappingDriverChainTest.php +++ b/tests/Extensions/MappingDriverChainTest.php @@ -34,10 +34,10 @@ public function test_can_add_namespace() $this->chain->addNamespace('NewNamespace2'); $this->chain->addNamespace('NewNamespace3'); - $this->assertArrayHasKey('Namespace', $this->chain->getDrivers()); - $this->assertArrayHasKey('NewNamespace', $this->chain->getDrivers()); - $this->assertArrayHasKey('NewNamespace2', $this->chain->getDrivers()); - $this->assertArrayHasKey('NewNamespace3', $this->chain->getDrivers()); + $this->assertArrayHasKey('Namespace', $this->chain->getDrivers()); + $this->assertArrayHasKey('NewNamespace', $this->chain->getDrivers()); + $this->assertArrayHasKey('NewNamespace2', $this->chain->getDrivers()); + $this->assertArrayHasKey('NewNamespace3', $this->chain->getDrivers()); $this->assertArrayNotHasKey('NonExisting', $this->chain->getDrivers()); }