lithium\test\Mocker::_validateMockee()

protected static method

Will validate if mockee is a valid class we should mock.

Will fail if the mock already exists, or it doesn't contain \Mock in the namespace.

Parameters

  • string $mockee

    The fully namespaced \Mock class

Returns

bool

Source

	protected static function _validateMockee($mockee) {
		return preg_match('/\\\\Mock$/', $mockee) === 1;
	}