corrected English grammar (s/does not exists/does not exist)

This commit is contained in:
Douglas Greenshields 2013-08-13 20:56:24 +01:00
parent 2c466d2a25
commit d74eaf9603
6 changed files with 6 additions and 6 deletions

View File

@ -182,7 +182,7 @@ class Command
public function get($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]];

View File

@ -35,7 +35,7 @@ interface ProfilerStorageInterface
/**
* 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
*

View File

@ -12,7 +12,7 @@
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>
*

View File

@ -45,7 +45,7 @@ class ChainLoaderTest extends \PHPUnit_Framework_TestCase
{
$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('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(
'Symfony\Component\Templating\Storage\FileStorage',
$loader->load(new TemplateReference('foo.php', 'php')),

View File

@ -61,7 +61,7 @@ class FilesystemLoaderTest extends \PHPUnit_Framework_TestCase
$loader = new ProjectTemplateLoader2($pathPattern);
$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');
$loader = new ProjectTemplateLoader2(array(self::$fixturesPath.'/null/%name%', $pathPattern));

View File

@ -28,7 +28,7 @@ class GetterMetadataTest extends \PHPUnit_Framework_TestCase
public function testGetPropertyValueFromPublicGetter()
{
// 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');
$metadata = new GetterMetadata(self::CLASSNAME, 'internal');