lithium\test\Unit::get()

public static method

Finds the test case for the corresponding class name.

Parameters

  • string $class

    A fully-namespaced class reference for which to find a test case.

Returns

string

Returns the class name of a test case for $class, or null if none exists.

Source

	public static function get($class) {
		$parts = explode('\\', $class);

		$library = array_shift($parts);
		$name = array_pop($parts);
		$type = 'tests.cases.' . implode('.', $parts);

		return Libraries::locate($type, $name, compact('library'));
	}