PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.24.inc

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.24.inc   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.24.inc
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: 1 month ago
Size: 1,056 bytes
 

Contents

Class file image Download
<? // This test case file MUST always start with a open PHP tag set (with this comment) to prevent // the tests running into the "first PHP open tag excepted" condition breaking the tests. // Tests related to that "first PHP open tag excepted" condition should go in separate files. // This test case file only deals with SHORT OPEN TAGS. ?> <? /* Contrary to the long open tag token, the short open tag token does not contain a space after the tag and the sniff should handle it accordingly. The test below protects against regressions related to https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/588. */ ?> <? echo 'one space after short open tag'; ?> <? echo 'two spaces after short open tag'; ?> <?echo 'without space after short open tag'; ?> <? // This test case file MUST always end with an unclosed open PHP tag (with this comment) to prevent // the tests running into the "last PHP closing tag excepted" condition breaking tests. // Tests related to that "last PHP closing tag excepted" condition should go in separate files.