-
Notifications
You must be signed in to change notification settings - Fork 46
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
c3.php throwing PHP Warnings with Vagrant #32
Comments
@olemartinorg Any idea what might be causing this? Issue caused in the code of your last commit. Thanks in advance! |
Huh.. I think this must be a problem with the file system mirror inside the Vagrant VM. I've had strange problems like this with the VirtualBox shared folder drivers before. Can you check a few things for me?
|
Did you find a solution, @austintino? |
Hi @olemartinorg, Apologies for the slight delay in replying. You can find the answers to your questions below. 1. Connect to the VM as the root user and try to touch a file in the same directory.
No issues creating a file in this directory. I had tried this before and found the same results. 2.a What are the permission settings on the folder on the host machine?
2.b What are you running on your host, is it win/mac/linux? The host machine is
The VM is
3. On the VM, try 'stat someFileThatDontExist' and then create it on your host machine (not on the VM!). After that, run 'ls -l' in the folder to see what the permissions on that (now existing) file is. On the VM:
On the host:
|
Any update @olemartinorg ? |
Oh, sorry about this - I forgot all about it and went on vacation... Anyway, thanks for all the debugging! I have some more questions, that didn't quite clear things up for me.
|
Hi @austintino , vi /var/www/phpapps/api.testurl.test/tests/_output/c3tmp/codecoverage.serialized
ls -al /var/www/phpapps/api.testurl.test/tests/_output/c3tmp/ |
Description
I seem to receiving an error when trying to generate code coverage for functional tests inside Vagrant. The tests run and the code coverage generates fine but some test fail (namely any check on the response being valid JSON) due to
PHP Warnings
being thrown by the c3.php file.Steps
When ssh'd into vagrant, I run this command:
All 3 tests fail when trying to assert
$I->seeResponseIsJson();
. When taking a look at the failure report generate intests/_output/tests.Company.Product.CategoriesCest.orderCategoriesDesc.fail.html
I see the following error:At line 321,
c3.php
is trying to execute:c3/c3.php
Lines 320 to 322 in f08f20b
which it can't complete because the permissions for c3tmp directory are as follows:
I'm puzzled as to why codeception wouldn't have permissions to write
codecoverage.serialized
inc3tmp/
when it has created the directory itself... Furthermore, applying full read-write permissions to thec3tmp/
via:results in even more
PHP Warnings
being generated seemingly from the same type of issue i.e incorrect file permissions, read-write lock etc. I've detailed these issues below:Additional Information
Vagrant: Vagrant 1.9.2
PHP: PHP 5.5.9-1ubuntu4.20 (cli)
functional.suite.dist.yml
The text was updated successfully, but these errors were encountered: