PHP Classes

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

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.23.inc   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.23.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: 2 days ago
Size: 746 bytes
 

Contents

Class file image Download
<?php // This test case file MUST always start with a long 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. ?> <!-- The "blank lines before close tag" check will not be executed when this is the last embedded PHP block. Note: I am not sure what the reason is for this exception, but the sniff has had this behaviour for the longest time, so this test documents the behaviour without an opinion on the correctness. --> <div> <?php echo 'There are a few too many blank lines below this line'; ?> </div> <p>Some more content after the last PHP tag block.</p>