[Validator] Fixed typos

This commit is contained in:
Bernhard Schussek 2012-02-01 09:21:22 +01:00
parent a30a679135
commit 0417282740
2 changed files with 4 additions and 8 deletions

View File

@ -27,11 +27,7 @@ class GlobalExecutionContext
private $metadataFactory;
private $violations;
public function __construct(
$root,
GraphWalker $graphWalker,
ClassMetadataFactoryInterface $metadataFactory
)
public function __construct($root, GraphWalker $graphWalker, ClassMetadataFactoryInterface $metadataFactory)
{
$this->root = $root;
$this->graphWalker = $graphWalker;

View File

@ -89,7 +89,7 @@ class ExecutionContextTest extends \PHPUnit_Framework_TestCase
)), $this->context->getViolations());
}
public function testAddViolationUsesPassedNulValue()
public function testAddViolationUsesPassedNullValue()
{
// passed null value should override preconfigured value "invalid"
$this->context->addViolation('Error', array('foo' => 'bar'), null);
@ -136,7 +136,7 @@ class ExecutionContextTest extends \PHPUnit_Framework_TestCase
)), $this->context->getViolations());
}
public function testAddViolationAtUsesPassedNulValue()
public function testAddViolationAtUsesPassedNullValue()
{
// passed null value should override preconfigured value "invalid"
$this->context->addViolationAt('bar.baz', 'Error', array('foo' => 'bar'), null);
@ -233,7 +233,7 @@ class ExecutionContextTest extends \PHPUnit_Framework_TestCase
)), $this->context->getViolations());
}
public function testAddNestedViolationAtUsesPassedNulValue()
public function testAddNestedViolationAtUsesPassedNullValue()
{
// passed null value should override preconfigured value "invalid"
$this->context->addNestedViolationAt('bam.baz', 'Error', array('foo' => 'bar'), null);