phpspec/phpspec — pull request #340 by 8823-scholar (2014-03-26 19:00:57+00:00)
Title: fix bug in instantinate with some arguments

There is a bug in instantinate with some arguments.

Example:

class SomeSpec extends ObjectBehavior
{
public function let()
{
$this->beConstructedWith('foo');
}

public function it_is_foo()
{
$this->isFoo()->shouldBe(true);
}

public function it_is_bar()
{
$this->beConstructedWith('bar');
$this->isBar()->shouldBe(true);
}
}

`it_is_bar` spec is failed in this case.
Because, it is not done to reset the instance at `beConstructedWith`.