Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL register() tests fail under PHP 5.4 #27

Open
adri opened this issue Jan 29, 2014 · 0 comments
Open

MySQL register() tests fail under PHP 5.4 #27

adri opened this issue Jan 29, 2014 · 0 comments
Labels

Comments

@adri
Copy link
Contributor

adri commented Jan 29, 2014

I get some errors running the MySQL tests with PHP 5.4. In the test register() is called with an array (but it expects a string) and the NoOpDecorator is used which doesn't do a conversion. So when building the MySQL insert it crashes. See following log:

There were 2 errors:

1) Liip\Drupal\Modules\Registry\Database\MySqlTest::testRegister
Array to string conversion

/Volumes/Work/workspace/LiipDrupalRegistryModule/src/Liip/Drupal/Modules/Registry/Database/MySql.php:53
/Volumes/Work/workspace/LiipDrupalRegistryModule/Tests/Liip/Drupal/Modules/Registry/Database/MySqlTest.php:292

2) Liip\Drupal\Modules\Registry\Database\MySqlTest::testReplace
Array to string conversion

/Volumes/Work/workspace/LiipDrupalRegistryModule/src/Liip/Drupal/Modules/Registry/Database/MySql.php:174
/Volumes/Work/workspace/LiipDrupalRegistryModule/Tests/Liip/Drupal/Modules/Registry/Database/MySqlTest.php:380

--


There was 1 failure:

1) Liip\Drupal\Modules\Registry\Database\MySqlTest::testRegisterExpectingException
Failed asserting that exception of type "PHPUnit_Framework_Error_Notice" matches expected exception "\Liip\Drupal\Modules\Registry\RegistryException". Message was: "Array to string conversion".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant