Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
[zendframework/zendframework#3844] Remove tests no longer present in …
Browse files Browse the repository at this point in the history
…develop

- Two tests were present on master but removed in develop -- and brought
  back in during merge. Removed.
  • Loading branch information
weierophinney committed Mar 25, 2013
1 parent 295f526 commit 7195a53
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions test/IdenticalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,38 +182,6 @@ public function testValidatingArrayTokenInContext()
));
}

public function testSetStringTokenNonExistentInContext()
{
$this->validator->setToken('email');
$this->setExpectedException(
'Zend\Validator\Exception\RuntimeException',
"The token doesn't exist in the context"
);

$this->validator->isValid(
'john@doe.com',
array('name' => 'john') // There's no 'email' key here, must throw an exception
);
}

public function testSetArrayTokenNonExistentInContext()
{
$this->validator->setToken(array('user' => 'email'));
$this->setExpectedException(
'Zend\Validator\Exception\RuntimeException',
"The token doesn't exist in the context"
);

$this->validator->isValid(
'john@doe.com',
array(
'admin' => array( // Here is 'admin' instead of 'user', must throw an exception
'email' => 'john@doe.com'
)
)
);
}

public function testCanSetLiteralParameterThroughConstructor()
{
$validator = new Identical(array('token' => 'foo', 'literal' => true));
Expand Down

0 comments on commit 7195a53

Please # to comment.