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

Commit

Permalink
Testing invalid argument exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
kherge committed Jun 19, 2013
1 parent 6093b93 commit 005fd06
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/tests/Herrera/Util/Tests/ObjectStorageTest.php
Expand Up @@ -28,6 +28,16 @@ public function testAddAll()
$this->assertFalse($this->store->contains($two));
}

public function testAddAllInvalidArgument()
{
$this->setExpectedException(
'InvalidArgumentException',
'The $storage argument must be an instance of SplObjectStorage.'
);

$this->store->addAll(123);
}

public function testAttach()
{
$one = new ExampleObject();
Expand Down

0 comments on commit 005fd06

Please sign in to comment.