phactory
phactory copied to clipboard
A Database Factory for PHP Unit Tests
Collection insert() parameters are expected to be passed by reference. PHP 7.4 seems to enforce that pretty rigidly, triggering an error when the method is called. The call_user_func_array() approach to...
Hey, not sure, but I think your website has been hacked and replaced with wedding planning?
You cant use this "as is" with composer. This was something I could not find in the documentation. You must have the following "use" keyword ``` use Phactory\Sql\Phactory; ``` at...
While this is isn't a fully working example, it should be enough to get started for someone in Drupal, already running/writing tests. Doing it in Phactory actually makes TDD possible...
"Only variables should be passed by reference" in Phactory/lib/Phactory.php:146
We are working on a legacy project. Some of our database doesn't have a primary key. Instead, they have unique key with auto increment. We think it would be helpful...
Added escaping table name
Quoting table name identifier db-specific. Handling of fully qualified identifiers.
- Added / enabled the option to disable pluralizing. - Modified the unit tests. - Changed the order of constructors parameters. (Some optional parameters were between required parameters.)
From the code, setConnection, define and create are not static functions but the README and website guide do not reflect that