vendor/yiisoft/yii2-jui/tests/DatePickerTest.php
/**
     * No exception should be thrown by the formatter, instead the value should stay as is in this case
     * @dataProvider invalidDateInputProvider
     */
No exception should be thrown by the formatter, instead the value should stay as is in this case
@dataProvider invalidDateInputProvider
No exception should be thrown by the formatter instead the value should stay as is in this case @dataProvider invalidDateInputProvider
public function testInvalidDateValue($value)
    {
        $this->mockWebApplication([
            'components' => [
                'assetManager' => [
                    'basePath' => '@yiiunit/extensions/jui/data/web/assets',
                    'baseUrl' => '/assets',
                ],
            ]
        ]);
        ob_start();
        echo DatePicker::widget([
            'value' => $value
        ]);
        $output = ob_get_clean();
        $this->assertContains($value, $output);
    }
public function testInvalidDateValue ( $ value ) { $ this -> mockWebApplication ( [ 'components' => [ 'assetManager' => [ 'basePath' => '@yiiunit/extensions/jui/data/web/assets' , 'baseUrl' => '/assets' , ] , ] ] ) ; ob_start ( ) ; echo DatePicker :: widget ( [ 'value' => $ value ] ) ; $ output = ob_get_clean ( ) ; $ this -> assertContains ( $ value , $ output ) ; }
No exception should be thrown by the formatter, instead the value should stay as is in this case
 @dataProvider invalidDateInputProvider
No exception should be thrown by the formatter instead the value should stay as is in this case @dataProvider invalidDateInputProvider