ソースを参照

Remove some more slashes for 5.2.

Justin Hileman 13 年 前
コミット
1ffd7c1a8f

+ 5 - 5
test/Mustache/Test/HelperCollectionTest.php

@@ -105,12 +105,12 @@ class Mustache_Test_HelperCollectionTest extends PHPUnit_Framework_TestCase {
             array(
                 'not helpers',
                 array(),
-                '\InvalidArgumentException',
+                'InvalidArgumentException',
             ),
             array(
                 array(),
                 array('get' => array('foo')),
-                '\InvalidArgumentException',
+                'InvalidArgumentException',
             ),
             array(
                 array('foo' => 'FOO'),
@@ -120,7 +120,7 @@ class Mustache_Test_HelperCollectionTest extends PHPUnit_Framework_TestCase {
             array(
                 array('foo' => 'FOO'),
                 array('get' => array('bar')),
-                '\InvalidArgumentException',
+                'InvalidArgumentException',
             ),
             array(
                 array('foo' => 'FOO'),
@@ -144,12 +144,12 @@ class Mustache_Test_HelperCollectionTest extends PHPUnit_Framework_TestCase {
                     'remove' => array('foo'),
                     'get'    => array('foo'),
                 ),
-                '\InvalidArgumentException',
+                'InvalidArgumentException',
             ),
             array(
                 array(),
                 array('remove' => array('foo')),
-                '\InvalidArgumentException',
+                'InvalidArgumentException',
             ),
         );
     }

+ 1 - 1
test/Mustache/Test/Loader/ArrayLoaderTest.php

@@ -39,7 +39,7 @@ class Mustache_Test_Loader_ArrayLoaderTest extends PHPUnit_Framework_TestCase {
 	}
 
 	/**
-	 * @expectedException \InvalidArgumentException
+	 * @expectedException InvalidArgumentException
 	 */
 	public function testMissingTemplatesThrowExceptions() {
 		$loader = new Mustache_Loader_ArrayLoader;

+ 2 - 2
test/Mustache/Test/Loader/FilesystemLoaderTest.php

@@ -28,14 +28,14 @@ class Mustache_Test_Loader_FilesystemLoaderTest extends PHPUnit_Framework_TestCa
 	}
 
 	/**
-	 * @expectedException \RuntimeException
+	 * @expectedException RuntimeException
 	 */
 	public function testMissingBaseDirThrowsException() {
 		$loader = new Mustache_Loader_FilesystemLoader(dirname(__FILE__).'/not_a_directory');
 	}
 
 	/**
-	 * @expectedException \InvalidArgumentException
+	 * @expectedException InvalidArgumentException
 	 */
 	public function testMissingTemplateThrowsException() {
 		$baseDir = realpath(dirname(__FILE__).'/../../../fixtures/templates');

+ 3 - 3
test/Mustache/Test/MustacheTest.php

@@ -125,7 +125,7 @@ class Mustache_Test_MustacheTest extends PHPUnit_Framework_TestCase {
 	}
 
 	/**
-	 * @expectedException \InvalidArgumentException
+	 * @expectedException InvalidArgumentException
 	 * @dataProvider getBadEscapers
 	 */
 	public function testNonCallableEscapeThrowsException($escape) {
@@ -140,7 +140,7 @@ class Mustache_Test_MustacheTest extends PHPUnit_Framework_TestCase {
 	}
 
 	/**
-	 * @expectedException \RuntimeException
+	 * @expectedException RuntimeException
 	 */
 	public function testImmutablePartialsLoadersThrowException() {
 		$mustache = new Mustache_Mustache(array(
@@ -201,7 +201,7 @@ class Mustache_Test_MustacheTest extends PHPUnit_Framework_TestCase {
 	}
 
 	/**
-	 * @expectedException \InvalidArgumentException
+	 * @expectedException InvalidArgumentException
 	 */
 	public function testSetHelpersThrowsExceptions() {
 		$mustache = new Mustache_Mustache;

+ 1 - 1
test/Mustache/Test/ParserTest.php

@@ -107,7 +107,7 @@ class Mustache_Test_ParserTest extends PHPUnit_Framework_TestCase {
 
 	/**
 	 * @dataProvider getBadParseTrees
-	 * @expectedException \LogicException
+	 * @expectedException LogicException
 	 */
 	public function testParserThrowsExceptions($tokens) {
 		$parser = new Mustache_Parser;