Пример #1
0
	/**
	 * Tests the JLoader::loadByNamespaceMixedCase method
	 * with a camel case namespace and low case path.
	 *
	 * @return  void
	 *
	 * @since   12.3
	 * @covers  JLoader::loadByNamespaceMixedCase
	 */
	public function testLoadByNamespaceMixedCaseCamelCaseNamespaceLowCasePath()
	{
		// Register a camel cased namespace but lower case path.
		$path = dirname(__FILE__) . '/stubs/chess';
		JLoader::registerNamespace('Chess', $path);

		// Check we can load it by using his camel cased name.
		$this->assertTrue(JLoader::loadByNamespaceLowerCase('Chess\\Piece\\Pawn'));
	}