'foo bar', 'foo bar'
],
['foo bar baz', ' foo bar baz'
],
['foo bar baz', " foo\nbar \t baz\n"
],
];
} /**
* @dataProvider provideEqualsTo
*/
public function testEqualsTo(bool
$expected, string
$origin,
$other) { $this->
assertSame($expected,
static::
createFromString($origin)->
equalsTo($other));
} public static function provideEqualsTo() { return [ [true, '', ''
],
[false, '', 'foo'
],
[false, 'foo', ''
],
[false, 'foo', 'Foo'
],
[false, "foo\n", 'foo'
],
[true, 'Foo bar', 'Foo bar'
],
[