function it_throws_an_exception_when_trying_to_change_from_constructor_to_factory_method_after_instantiation()
{
$this->callOnWrappedObject('beAnInstanceOf', array('\\DateTime'));
$this->callOnWrappedObject('beConstructedWith', array(array('now')));
$this->callOnWrappedObject('instantiate', array());
$this->shouldThrow('PhpSpec\\Exception\\Wrapper\\SubjectException')->duringBeConstructedThrough(array('createFromFormat', array('d-m-Y', '01-01-1970')));
}