Remove some more slashes for 5.2.
This commit is contained in:
@@ -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',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user