public function testConstructorFailed($dsn, $username = null, $password = null, $options = []) { $this->expectException(ConstructorFailed::class); Factory::create($dsn, $username, $password, $options); }