You are here

GenderNeutralCommentUnitTest.inc in Coder 8.3

Same filename and directory in other branches
  1. 8.3.x tests/Drupal/Commenting/GenderNeutralCommentUnitTest.inc

Example gendered comments.

He did something. She did something. They did something.

File

tests/Drupal/Commenting/GenderNeutralCommentUnitTest.inc
View source
<?php

/**
 * @file
 * Example gendered comments.
 *
 * He did something.
 * She did something.
 * They did something.
 */

// She wrote this comment.
// He wrote this comment.
// S/he wrote this comment.
// They wrote this comment.
// His foot moved.
// Her foot moved.
// Their foot moved.
// He's got a foot.
// She's got a foot.
// Hers is blue.
// His is blue.

/**
 * Test function.
 *
 * He did something.
 * She did something.
 * They did something.
 */
function example() {

  // They looked at him.
  // The sniff only checked comments not code.
  $a = "The regex finds he, her, hers, him, his and she.";
}

Functions

Namesort descending Description
example Test function.