Neos\Flow\Tests\Unit\Property\TypeConverter\DateTimeConverterTest::convertFromIntegerOrDigitStringWithoutConfigurationTests PHP Method

convertFromIntegerOrDigitStringWithoutConfigurationTests() public method

    public function convertFromIntegerOrDigitStringWithoutConfigurationTests($source)
    {
        $date = $this->converter->convertFrom($source, 'DateTime', [], null);
        $this->assertInstanceOf(\DateTime::class, $date);
        $this->assertSame(strval($source), $date->format('U'));
    }