corrected English grammar (s/does not exists/does not exist)
This commit is contained in:
parent
2c466d2a25
commit
d74eaf9603
|
@ -182,7 +182,7 @@ class Command
|
||||||
public function get($label)
|
public function get($label)
|
||||||
{
|
{
|
||||||
if (!isset($this->labels[$label])) {
|
if (!isset($this->labels[$label])) {
|
||||||
throw new \RuntimeException('Label "'.$label.'" does not exists.');
|
throw new \RuntimeException('Label "'.$label.'" does not exist.');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->bits[$this->labels[$label]];
|
return $this->bits[$this->labels[$label]];
|
||||||
|
|
|
@ -35,7 +35,7 @@ interface ProfilerStorageInterface
|
||||||
/**
|
/**
|
||||||
* Reads data associated with the given token.
|
* Reads data associated with the given token.
|
||||||
*
|
*
|
||||||
* The method returns false if the token does not exists in the storage.
|
* The method returns false if the token does not exist in the storage.
|
||||||
*
|
*
|
||||||
* @param string $token A token
|
* @param string $token A token
|
||||||
*
|
*
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
namespace Symfony\Component\Routing\Exception;
|
namespace Symfony\Component\Routing\Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception thrown when a route does not exists
|
* Exception thrown when a route does not exist
|
||||||
*
|
*
|
||||||
* @author Alexandre Salomé <alexandre.salome@gmail.com>
|
* @author Alexandre Salomé <alexandre.salome@gmail.com>
|
||||||
*
|
*
|
||||||
|
|
|
@ -45,7 +45,7 @@ class ChainLoaderTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
$loader = new ProjectTemplateLoader1(array($this->loader1, $this->loader2));
|
$loader = new ProjectTemplateLoader1(array($this->loader1, $this->loader2));
|
||||||
$this->assertFalse($loader->load(new TemplateReference('bar', 'php')), '->load() returns false if the template is not found');
|
$this->assertFalse($loader->load(new TemplateReference('bar', 'php')), '->load() returns false if the template is not found');
|
||||||
$this->assertFalse($loader->load(new TemplateReference('foo', 'php')), '->load() returns false if the template does not exists for the given renderer');
|
$this->assertFalse($loader->load(new TemplateReference('foo', 'php')), '->load() returns false if the template does not exist for the given renderer');
|
||||||
$this->assertInstanceOf(
|
$this->assertInstanceOf(
|
||||||
'Symfony\Component\Templating\Storage\FileStorage',
|
'Symfony\Component\Templating\Storage\FileStorage',
|
||||||
$loader->load(new TemplateReference('foo.php', 'php')),
|
$loader->load(new TemplateReference('foo.php', 'php')),
|
||||||
|
|
|
@ -61,7 +61,7 @@ class FilesystemLoaderTest extends \PHPUnit_Framework_TestCase
|
||||||
|
|
||||||
$loader = new ProjectTemplateLoader2($pathPattern);
|
$loader = new ProjectTemplateLoader2($pathPattern);
|
||||||
$loader->setDebugger($debugger = new \Symfony\Component\Templating\Tests\Fixtures\ProjectTemplateDebugger());
|
$loader->setDebugger($debugger = new \Symfony\Component\Templating\Tests\Fixtures\ProjectTemplateDebugger());
|
||||||
$this->assertFalse($loader->load(new TemplateReference('foo.xml', 'php')), '->load() returns false if the template does not exists for the given engine');
|
$this->assertFalse($loader->load(new TemplateReference('foo.xml', 'php')), '->load() returns false if the template does not exist for the given engine');
|
||||||
$this->assertTrue($debugger->hasMessage('Failed loading template'), '->load() logs a "Failed loading template" message if the template is not found');
|
$this->assertTrue($debugger->hasMessage('Failed loading template'), '->load() logs a "Failed loading template" message if the template is not found');
|
||||||
|
|
||||||
$loader = new ProjectTemplateLoader2(array(self::$fixturesPath.'/null/%name%', $pathPattern));
|
$loader = new ProjectTemplateLoader2(array(self::$fixturesPath.'/null/%name%', $pathPattern));
|
||||||
|
|
|
@ -28,7 +28,7 @@ class GetterMetadataTest extends \PHPUnit_Framework_TestCase
|
||||||
public function testGetPropertyValueFromPublicGetter()
|
public function testGetPropertyValueFromPublicGetter()
|
||||||
{
|
{
|
||||||
// private getters don't work yet because ReflectionMethod::setAccessible()
|
// private getters don't work yet because ReflectionMethod::setAccessible()
|
||||||
// does not exists yet in a stable PHP release
|
// does not exist yet in a stable PHP release
|
||||||
|
|
||||||
$entity = new Entity('foobar');
|
$entity = new Entity('foobar');
|
||||||
$metadata = new GetterMetadata(self::CLASSNAME, 'internal');
|
$metadata = new GetterMetadata(self::CLASSNAME, 'internal');
|
||||||
|
|
Reference in New Issue