| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 8 | class AbstractConnectionConfigTest extends TestCase |
||
| 9 | { |
||
| 10 | const CONFIG_HOST = 'host'; |
||
| 11 | const CONFIG_USERNAME = 'username'; |
||
| 12 | const CONFIG_PASSWORD = 'password'; |
||
| 13 | const CONFIG_DBNAME = 'dbname'; |
||
| 14 | const CONFIG_ADAPTER = 'adapter'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var AbstractConnectionConfig |
||
| 18 | */ |
||
| 19 | private $abstractConnectionConfig; |
||
| 20 | |||
| 21 | public function setUp() |
||
| 22 | { |
||
| 23 | $this->abstractConnectionConfig = $this->getMockForAbstractClass( |
||
|
|
|||
| 24 | AbstractConnectionConfig::class, |
||
| 25 | [ |
||
| 26 | static::CONFIG_HOST, |
||
| 27 | static::CONFIG_USERNAME, |
||
| 28 | static::CONFIG_PASSWORD, |
||
| 29 | static::CONFIG_DBNAME, |
||
| 30 | static::CONFIG_ADAPTER, |
||
| 31 | ] |
||
| 32 | ); |
||
| 33 | } |
||
| 34 | |||
| 35 | public function testGetUsername() |
||
| 36 | { |
||
| 37 | $this->assertEquals(static::CONFIG_USERNAME, $this->abstractConnectionConfig->getUsername()); |
||
| 38 | } |
||
| 39 | |||
| 40 | public function testGetPassword() |
||
| 43 | } |
||
| 44 | |||
| 45 | public function testGetDbname() |
||
| 50 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..