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

convertFromIntegerOrDigitStringInArrayWithoutConfigurationTests() public method

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