From 6d1209c06d9e3d765e3d68bc556fe678bc66f9c4 Mon Sep 17 00:00:00 2001 From: "Fabio B. Silva" Date: Mon, 26 Mar 2012 01:03:32 -0300 Subject: [PATCH] fix typo --- lib/Doctrine/ORM/Mapping/MappingException.php | 4 ++-- .../Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Doctrine/ORM/Mapping/MappingException.php b/lib/Doctrine/ORM/Mapping/MappingException.php index 2dfd3d183..60cbc5506 100644 --- a/lib/Doctrine/ORM/Mapping/MappingException.php +++ b/lib/Doctrine/ORM/Mapping/MappingException.php @@ -36,7 +36,7 @@ class MappingException extends \Doctrine\ORM\ORMException { if (null !== ($parent = get_parent_class($entityName))) { return new self(sprintf( - 'No identifier/primary key specified for Entity "%s" sub classe of "%s". Every Entity must have an identifier/primary key.', + 'No identifier/primary key specified for Entity "%s" sub class of "%s". Every Entity must have an identifier/primary key.', $entityName, $parent )); } @@ -156,7 +156,7 @@ class MappingException extends \Doctrine\ORM\ORMException { if (null !== ($parent = get_parent_class($className))) { return new self(sprintf( - 'Class "%s" sub classe of "%s" is not a valid entity or mapped super class.', + 'Class "%s" sub class of "%s" is not a valid entity or mapped super class.', $className, $parent )); } diff --git a/tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php b/tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php index 4093407e1..3233c3104 100644 --- a/tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php +++ b/tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php @@ -469,7 +469,7 @@ abstract class AbstractMappingDriverTest extends \Doctrine\Tests\OrmTestCase /** * @group DDC-889 * @expectedException Doctrine\ORM\Mapping\MappingException - * @expectedExceptionMessage Class "Doctrine\Tests\Models\DDC889\DDC889Class" sub classe of "Doctrine\Tests\Models\DDC889\DDC889SuperClass" is not a valid entity or mapped super class. + * @expectedExceptionMessage Class "Doctrine\Tests\Models\DDC889\DDC889Class" sub class of "Doctrine\Tests\Models\DDC889\DDC889SuperClass" is not a valid entity or mapped super class. */ public function testInvalidEntityOrMappedSuperClassShouldMentionParentClasses() { @@ -479,7 +479,7 @@ abstract class AbstractMappingDriverTest extends \Doctrine\Tests\OrmTestCase /** * @group DDC-889 * @expectedException Doctrine\ORM\Mapping\MappingException - * @expectedExceptionMessage No identifier/primary key specified for Entity "Doctrine\Tests\Models\DDC889\DDC889Entity" sub classe of "Doctrine\Tests\Models\DDC889\DDC889SuperClass". Every Entity must have an identifier/primary key. + * @expectedExceptionMessage No identifier/primary key specified for Entity "Doctrine\Tests\Models\DDC889\DDC889Entity" sub class of "Doctrine\Tests\Models\DDC889\DDC889SuperClass". Every Entity must have an identifier/primary key. */ public function testIdentifierRequiredShouldMentionParentClasses() {