/** * This method tests that a value is converted to a string. * * @dataProvider data_toString */ public function test_toString(array $provided, array $expected) { $p0 = Throwable\Unknown\Exception::make($provided)->__toString(); $e0 = $expected[0]; $this->assertInternalType('string', $p0); $this->assertEquals($e0, substr($p0, 0, strlen($e0))); }