Skip to content

Latest commit

 

History

History
67 lines (40 loc) · 1.83 KB

File metadata and controls

67 lines (40 loc) · 1.83 KB
layout doc
title Codeception - Documentation

Codeception\Util\Autoload

Custom autoloader to load classes by suffixes: Helper, Page, Step, etc.

public static load($class)

  • param $class
  • return bool

See source

public static matches($class, $namespace, $suffix)

is public for testing purposes

  • param $class
  • param $namespace
  • param $suffix
  • return bool

See source

public static register($namespace, $suffix, $path)

A very basic yet useful autoloader, not compatible with PSR-0. It is used to autoload classes by namespaces with suffixes.

Example:

{% highlight php %}

{% endhighlight %}

  • param $namespace
  • param $suffix
  • param $path

See source

public static registerSuffix($suffix, $path)

Shortcut for { * link self::register} for classes with empty namespaces.

  • param $suffix
  • param $path

See source

 

Reference is taken from the source code. Help us to improve documentation. Edit module reference