Skip to content
This repository was archived by the owner on Aug 24, 2021. It is now read-only.

Conversation

@hhatfield
Copy link

@hhatfield hhatfield commented Sep 22, 2017

This adds coverage for the constructor and destructor of the strip_tags filter. Also tests the sample code from http://php.net/manual/en/filters.string.php

UPHPU TestFest

This adds coverage for the constructor and destructor of the strip_tags filter. Used the sample code from http://php.net/manual/en/filters.string.php
p365labs pushed a commit to p365labs/phptestfest-php-src that referenced this pull request Nov 18, 2017
H Hatfield hatfieldje@gmail.com UPHPU Test Fest
--FILE--
<?php
# vim600:syn=php:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# vim600:syn=php:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is the only change needed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is copy/paste from whichever test I used as a template. It seems to show up in quite a few files. I have no strong ties to this line, but would like to understand why it should be removed.

Copy link
Contributor

@petk petk Feb 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hhatfield These are so called Vim modes. They are now gone from the php-src in favour of the EditorConfig and manual user side configurations. See this change:
php/php-src@92ac598

and here https://externals.io/message/101206

Yes, they were present once in some of those files. Some are still there but only on very rare places (for eample *.w32 files to enable syntax highlighting and for some documentation purposes). Long term: they should all be replaced with different approaches. For example, EditorConfig once more options will be available.

@petk petk self-assigned this Feb 10, 2019
@petk
Copy link
Contributor

petk commented Feb 10, 2019

@carusogabriel if all other things here are good, I'll merge this one also then... Maybe also --EXPECTF-- to --EXPECT-- change will be done, other things seem good to add.

@carusogabriel
Copy link
Contributor

@petk Go ahead then.

@petk
Copy link
Contributor

petk commented Feb 10, 2019

@carusogabriel the string.strip_tags has been deprecated in PHP 7.3... 🙄

@carusogabriel
Copy link
Contributor

If so, @hhatfield thanks for the PR, but it's not valid anymore 😕

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants