ob_start();
$dumper->
dump($cloner->
cloneVar($var));
$out =
ob_get_clean();
$this->
assertStringContainsString($needle,
$out);
} public static function varToDumpProvider() { return [ [['dummy' =>
new ImgStub('dummy', 'img/png', '100em'
)], '<img src="data:img/png;base64,ZHVtbXk=" />'
],
['foo', '<span class=sf-dump-str title="3 characters">foo</span>'
],
];
}}