You are here

monkey_patch.inc in Module Object Oriented Programming API 7.2

This file is intended to be separate. It helps to test whether monkey patching works.

File

tests/monkey_patch.inc
View source
<?php

/**
 * @file
 * This file is intended to be separate.
 * It helps to test whether monkey patching works.
 */
function doesMonkeyPatchWork() {
  return FALSE;
}

/**
 * It is for testing Moopapi::wrap().
 */
class ExampleApp {
  public function exampleMethod() {
    return 'ExampleApp';
  }

}
class ExampleAppTestDecorator {
  public function exampleMethod() {
    return 'TestDecorator';
  }

}

Functions

Namesort descending Description
doesMonkeyPatchWork @file This file is intended to be separate. It helps to test whether monkey patching works.

Classes

Namesort descending Description
ExampleApp It is for testing Moopapi::wrap().
ExampleAppTestDecorator