This repository was archived by the owner on Jan 29, 2020. It is now read-only.
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Cannot access, nor test, the protected variable $this->select in Insert.php #175
Open
Description
In ./src/Sql/Insert.php
there is a protected variable $select
(line 46). However, this variable is not able to be retrieved directly because
- The magic getter (line 275) only retrieves values from
$this->columns
->getRawState
(line 158) only retrieves$this->table
and$this->columns
(keys, values)
As such, it is not possible to access $this->select
as it is hidden from the calling-code, thereby making it impossible to test the Select object stored in $this->select
. The only workaround at this time is to use ->getSqlString()
and use string comparison on the actual SQL string (eew).
Can we provide (read-only) access to $this->select
in order to facilitate testing?
Metadata
Metadata
Assignees
Labels
No labels