caxy / php-htmldiff

A library for comparing two HTML files/snippets and highlighting the differences using simple HTML. Includes support for comparing complex lists and tables
http://php-htmldiff.caxy.com
GNU General Public License v2.0
202 stars 51 forks source link

HTMLPurifier Permission Fix #63

Closed snebes closed 7 years ago

jschroed91 commented 7 years ago

Looks like we'll need to update the test for this as well

jschroed91 commented 7 years ago

In HTMLPurifierConfigTest.php line 25 change it to:

        $this->config->expects($this->atLeastOnce())
            ->method('set')
            ->withConsecutive(
                array('Cache.SerializerPath', '/tmp'),
            array('Cache.SerializerPermissions', 0777)
            );
snebes commented 7 years ago

That is close, but I don't think the Cache.SerializerPath setting is actually set in the tests, so I when with the generic $this->anything() parameter.