Skip to content

Commit

Permalink
Creating a new test just to test the bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
bycosta committed Apr 4, 2017
1 parent 5403bd8 commit 5fa2f63
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Instantiator/ConstructInstantiatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
class ConstructInstantiatorTest extends \PHPUnit_Framework_TestCase
{
public function testIsCreatingInstances()
{
$instantiator = new ConstructInstantiator();
$instance = $instantiator->instantiate('ErrorException', ['foobar']);
$this->assertInstanceOf('ErrorException', $instance);
$this->assertEquals(new \ErrorException('foobar'), $instance);
}

public function testIsHandlingArraysWithStringKeys()
{
$instantiator = new ConstructInstantiator();
$instance = $instantiator->instantiate(Enum::class, ['foo' => [1, 2], 'bar' => 'message']);
Expand Down

0 comments on commit 5fa2f63

Please sign in to comment.