Skip to content

CIPHPUnitTestPatcher

Mathieu Nayrolles edited this page Jan 20, 2016 · 1 revision

CIPHPUnitTestPatcher

Part of CI PHPUnit Test

  • Class name: CIPHPUnitTestPatcher
  • Namespace:

Properties

$cache_dir

private mixed $cache_dir
  • Visibility: private
  • This property is static.

$load_patchers

private mixed $load_patchers = false
  • Visibility: private
  • This property is static.

$patcher_classnames

private mixed $patcher_classnames = array()
  • Visibility: private
  • This property is static.

Methods

setCacheDir

mixed CIPHPUnitTestPatcher::setCacheDir($dir)
  • Visibility: public
  • This method is static.

Arguments

  • $dir mixed

getCacheDir

mixed CIPHPUnitTestPatcher::getCacheDir()
  • Visibility: public
  • This method is static.

createDir

mixed CIPHPUnitTestPatcher::createDir($dir)
  • Visibility: protected
  • This method is static.

Arguments

  • $dir mixed

hasValidCache

boolean CIPHPUnitTestPatcher::hasValidCache(string $path)
  • Visibility: protected
  • This method is static.

Arguments

  • $path string - <p>original source file path</p>

getCacheFilePath

mixed CIPHPUnitTestPatcher::getCacheFilePath($path)
  • Visibility: protected
  • This method is static.

Arguments

  • $path mixed

patch

mixed CIPHPUnitTestPatcher::patch($path)
  • Visibility: public
  • This method is static.

Arguments

  • $path mixed

writeCacheFile

mixed CIPHPUnitTestPatcher::writeCacheFile(string $path, string $source)
  • Visibility: protected
  • This method is static.

Arguments

  • $path string - <p>original source file path</p>
  • $source string - <p>source code</p>

loadPatchers

mixed CIPHPUnitTestPatcher::loadPatchers()
  • Visibility: protected
  • This method is static.

execPatchers

mixed CIPHPUnitTestPatcher::execPatchers($source)
  • Visibility: protected
  • This method is static.

Arguments

  • $source mixed
Clone this wiki locally