Merge pull request #2447 from owncloud/fix_namespace_in_autoloader
Remove leading and trailing backslashes in classname. Ref #2310remotes/origin/stable6
commit
ad2d222466
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2013 Thomas Müller <thomas.mueller@tmit.eu>
|
||||
* This file is licensed under the Affero General Public License version 3 or
|
||||
* later.
|
||||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
class Test_AutoLoader extends PHPUnit_Framework_TestCase {
|
||||
|
||||
public function testLeadingSlashOnClassName(){
|
||||
$this->assertTrue(class_exists('\OC\Files\Storage\Local'));
|
||||
}
|
||||
|
||||
public function testNoLeadingSlashOnClassName(){
|
||||
$this->assertTrue(class_exists('OC\Files\Storage\Local'));
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue