function it_can_be_instantiated_with_a_factory_method() { $this->callOnWrappedObject('beConstructedThrough', array('\\DateTime::createFromFormat', array('d-m-Y', '01-01-1970'))); $this->instantiate()->shouldHaveType('\\DateTime'); }