Permalink
Browse files

Fixed typos

  • Loading branch information...
pborreli committed Mar 11, 2013
1 parent 0dc4fe0 commit 3963aa0302b14670ac4cf4126ae3c77c7336a2e0
@@ -24,7 +24,7 @@
/**
* Locate the file that contains the metadata information for a given class name.
*
- * This behavior is inpependent of the actual content of the file. It just detects
+ * This behavior is independent of the actual content of the file. It just detects
* the file which is responsible for the given class name.
*
* @author Benjamin Eberlei <kontakt@beberlei.de>
@@ -26,7 +26,7 @@
*
* Using this interface the managing object manager and class metadata instances
* are injected into the persistent object after construction. This allows
- * you to implement ActiveRecord functionality on top of the persistance-ignorance
+ * you to implement ActiveRecord functionality on top of the persistence-ignorance
* that Doctrine propagates.
*
* Word of Warning: This is a very powerful hook to change how you can work with your domain models.
@@ -38,7 +38,7 @@
* This is either done on `postLoad` of an object or by accessing the global object manager.
* 3. There are no hooks for setters/getters. Just implement the method yourself instead of relying on __call().
* 4. Slower than handcoded implementations: An average of 7 method calls per access to a field and 11 for an association.
- * 5. Only the inverse side associations get autoset on the owning side aswell. Setting objects on the owning side
+ * 5. Only the inverse side associations get autoset on the owning side as well. Setting objects on the owning side
* will not set the inverse side associations.
*
* @example
@@ -160,7 +160,7 @@ private function get($field)
*/
private function completeOwningSide($field, $targetClass, $targetObject)
{
- // add this object on the owning side aswell, for obvious infinite recursion
+ // add this object on the owning side as well, for obvious infinite recursion
// reasons this is only done when called on the inverse side.
if ($this->cm->isAssociationInverseSide($field)) {
$mappedByField = $this->cm->getAssociationMappedByTargetField($field);
@@ -51,7 +51,7 @@ public function testLoadMetadata_NoDelegatorFound_ThrowsMappingException()
public function testGatherAllClassNames()
{
$className = 'Doctrine\Tests\Common\Persistence\Mapping\DriverChainEntity';
- $classMetadata = $this->getMock('Doctrine\Common\Peristence\ClassMetadata');
+ $classMetadata = $this->getMock('Doctrine\Common\Persistence\ClassMetadata');
$chain = new MappingDriverChain();
@@ -93,7 +93,7 @@ public function testIsTransient()
public function testDefaultDriver()
{
$companyDriver = $this->getMock('Doctrine\Common\Persistence\Mapping\Driver\MappingDriver');
- $dafaultDriver = $this->getMock('Doctrine\Common\Persistence\Mapping\Driver\MappingDriver');
+ $defaultDriver = $this->getMock('Doctrine\Common\Persistence\Mapping\Driver\MappingDriver');
$entityClassName = 'Doctrine\Tests\ORM\Mapping\DriverChainEntity';
$managerClassName = 'Doctrine\Tests\Models\Company\CompanyManager';
$chain = new MappingDriverChain();
@@ -105,19 +105,19 @@ public function testDefaultDriver()
->with($this->equalTo($managerClassName))
->will($this->returnValue(false));
- $dafaultDriver->expects($this->never())
+ $defaultDriver->expects($this->never())
->method('loadMetadataForClass');
- $dafaultDriver->expects($this->once())
+ $defaultDriver->expects($this->once())
->method('isTransient')
->with($this->equalTo($entityClassName))
->will($this->returnValue(true));
$this->assertNull($chain->getDefaultDriver());
- $chain->setDefaultDriver($dafaultDriver);
+ $chain->setDefaultDriver($defaultDriver);
$chain->addDriver($companyDriver, 'Doctrine\Tests\Models\Company');
- $this->assertSame($dafaultDriver, $chain->getDefaultDriver());
+ $this->assertSame($defaultDriver, $chain->getDefaultDriver());
$this->assertTrue($chain->isTransient($entityClassName));
$this->assertFalse($chain->isTransient($managerClassName));
@@ -84,7 +84,7 @@ public function testSetToOneAssociation()
$this->assertSame($parent, $this->object->getParent($parent));
}
- public function testSetInvalidToOneAssocation()
+ public function testSetInvalidToOneAssociation()
{
$parent = new \stdClass();
@@ -100,7 +100,7 @@ public function testSetToOneAssociationNull()
$this->assertNull($this->object->getParent());
}
- public function testAddToManyAssocation()
+ public function testAddToManyAssociation()
{
$child = new TestObject();
$this->object->addChildren($child);
@@ -114,7 +114,7 @@ public function testAddToManyAssocation()
$this->assertEquals(2, count($this->object->getChildren()));
}
- public function testAddInvalidToManyAssocation()
+ public function testAddInvalidToManyAssociation()
{
$this->setExpectedException('InvalidArgumentException');
$this->object->addChildren(new \stdClass());
@@ -16,7 +16,7 @@
/**
* A more flexible and powerful PHPUnit Task than the native Phing one.
*
- * Plus forward compability for PHPUnit 3.5 and later is ensured by using the PHPUnit Test Runner instead of implementing one.
+ * Plus forward compatibility for PHPUnit 3.5 and later is ensured by using the PHPUnit Test Runner instead of implementing one.
*
* @author Benjamin Eberlei <kontakt@beberlei.de>
*/

0 comments on commit 3963aa0

Please sign in to comment.