merged branch shieldo/grammar_fix (PR #8745)
This PR was merged into the 2.2 branch.
Discussion
----------
Grammar fix
Commits
-------
d74eaf9
corrected English grammar (s/does not exists/does not exist)
This commit is contained in:
commit
d66db41bef
|
@ -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]];
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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>
|
||||
*
|
||||
|
|
|
@ -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')),
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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');
|
||||
|
|
Reference in New Issue