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

Commit

Permalink
Merge branch 'hotfix/7354'
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Mar 23, 2015
2 parents f979380 + b4a4032 commit 578f174
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/IsInstanceOfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,12 @@ public function testPassTraversableToConstructor()
$this->assertFalse($validator->isValid(null));
$this->assertFalse($validator->isValid($this));
}

public function testPassOptionsWithoutClassNameKey()
{
$this->setExpectedException('Zend\Validator\Exception\InvalidArgumentException', 'Missing option "className"');

$options = array('NotClassNameKey' => 'DateTime');
$validator = new Validator\IsInstanceOf($options);
}
}

0 comments on commit 578f174

Please sign in to comment.