botzko

or is there something in front of your web server that can modify the request (if it’s localhost most probably this something is on the same server)

botzko

is there something in your code that will redirect to localhost?

botzko

Is moving to higher version of phpunit in the pipeline and if yes when it's expected?

botzko

Is there someone else getting Generating code coverage report in HTML format ...count(): Parameter must be an array or an object that implements Countable when trying to generate code coverage report from phpunit?

botzko

I'm using php 7.4.2, so most probably this is the reason for this error.

botzko

Is there any reason why silverstripe/installer specifies phpunit ^5.7 (it's not supported) ?

botzko

Yep this problem is because of the phpunit version

botzko

I was able to install phpunit 9.1.1 , creating class class PHPUnit_Framework_TestCase extends \PHPUnit\Framework\TestCase and fixing the declarations of multiple methods in SapphireTest (adding : void) and all my tests have passed and the code coverage report has been created

nightjarnz

> Is there any reason why silverstripe/installer specifies phpunit ^5.7 Yes, because Silverstripe is incompatible with newer versions, at the moment. I believe one of the core team members is working to update this now.

botzko

thank you @nightjarnz I have found this while testing 9.1.1 🙂

botzko

This is why I have put my second question - is it in the pipeline 🙂

nightjarnz

> I believe one of the core team members is working to update this now.


Show less replies
botzko

Question regarding upgrades - I have started my project with composer create-project silverstripe/installer my-project (as in the docs). When I did it the current version was 4.5 . 4.5.2 has been released but composer update doesn't upgrade the framework to 4.5.2. The question is What is the best way to upgrade to 4.5.2? . I can just update the versions of all packages listed in silverstripe/installer in my composer.json and run composer update . This should do the job but is there more elegant way to do it?

botzko
  1. RUN apk add --no-cache freetype libpng libjpeg-turbo freetype-dev libpng-dev libjpeg-turbo-dev && \
  2. docker-php-ext-configure gd \
  3. --with-gd \
  4. --with-freetype-dir=/usr/include/ \
  5. --with-png-dir=/usr/include/ \
  6. --with-jpeg-dir=/usr/include/ && \
  7. NPROC=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) && \
  8. docker-php-ext-install -j${NPROC} gd && \
  9. apk del --no-cache freetype-dev libpng-dev libjpeg-turbo-dev
👍 (1)