mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-06 15:06:31 +02:00
Init RTD v2 config
This commit is contained in:
@@ -59,5 +59,5 @@ Tests/DependencyInjectionTest.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/main/Structural/DependencyInjection
|
||||
.. _`GitHub`: https://github.com/DesignPatternsPHP/DesignPatternsPHP/tree/main/Structural/DependencyInjection
|
||||
.. __: http://en.wikipedia.org/wiki/Dependency_injection
|
||||
|
@@ -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