php - array_keys error from PHPUnit_Extensions_Database_DataSet_YamlDataSet -


trying load phpunit dataset using:

public function getdataset() {     return new phpunit_extensions_database_dataset_yamldataset("/path/file.yml"); } 

i

array_keys() expects parameter 1 array, integer given

on command line.

i can't tell if error because phpunit_extensions_database_dataset_yamldataset::addyamlfile() doesn't input, or if constructor returning phpunit_extensions_database_testcase doesn't like.

the yaml file created using phpmyadmin's yaml export feature. else run this?

the direct export phpmyadmin not match requirements in phpunit. take @ official documentation:

https://phpunit.de/manual/current/en/database.html

and take @ file generated phpmyadmin. differs. in phpmyadmin table names comments.

you have reformat file usable phpunit.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -