function it_throws_an_exception_when_trying_to_change_from_factory_method_to_constructor_after_instantiation()
{
$this->callOnWrappedObject('beAnInstanceOf', array('\\DateTime'));
$this->callOnWrappedObject('beConstructedThrough', array('createFromFormat', array('d-m-Y', '01-01-1980')));
$this->callOnWrappedObject('instantiate', array());
$this->shouldThrow('PhpSpec\\Exception\\Wrapper\\SubjectException')->duringBeConstructedWith('tomorrow');
}