mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-31 20:20:15 +02:00
Init RTD v2 config
This commit is contained in:
@@ -12,9 +12,9 @@ class DependencyInjectionTest extends TestCase
|
||||
{
|
||||
public function testDependencyInjection()
|
||||
{
|
||||
$config = new DatabaseConfiguration('localhost', 3306, 'domnikl', '1234');
|
||||
$config = new DatabaseConfiguration('localhost', 3306, 'user', '1234');
|
||||
$connection = new DatabaseConnection($config);
|
||||
|
||||
$this->assertSame('domnikl:1234@localhost:3306', $connection->getDsn());
|
||||
$this->assertSame('user:1234@localhost:3306', $connection->getDsn());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user