diff --git a/src/Framework/DataProvider.php b/src/Framework/DataProvider.php index 2b6c0d63..ce38a386 100644 --- a/src/Framework/DataProvider.php +++ b/src/Framework/DataProvider.php @@ -22,7 +22,7 @@ class DataProvider public static function load(string $file, string $query = ''): array { if (!is_file($file)) { - throw new \Exception("Missing data-provider file '$file'."); + throw new \Exception("Missing data provider file '$file'."); } if (pathinfo($file, PATHINFO_EXTENSION) === 'php') { @@ -33,13 +33,13 @@ public static function load(string $file, string $query = ''): array if ($data instanceof \Traversable) { $data = iterator_to_array($data); } elseif (!is_array($data)) { - throw new \Exception("Data provider file '$file' did not return array or Traversable."); + throw new \Exception("Data provider '$file' did not return array or Traversable."); } } else { $data = @parse_ini_file($file, true); // @ is escalated to exception if ($data === false) { - throw new \Exception("Cannot parse data-provider file '$file'."); + throw new \Exception("Cannot parse data provider file '$file'."); } } diff --git a/tests/Runner/Runner.annotations.phpt b/tests/Runner/Runner.annotations.phpt index 5f650088..6a8027cb 100644 --- a/tests/Runner/Runner.annotations.phpt +++ b/tests/Runner/Runner.annotations.phpt @@ -49,7 +49,7 @@ $cli = PHP_SAPI === 'cli'; $path = __DIR__ . DIRECTORY_SEPARATOR . 'annotations' . DIRECTORY_SEPARATOR; Assert::same([ - ['dataProvider.error.phptx', Test::FAILED, "Missing data-provider file '{$path}missing.ini'."], + ['dataProvider.error.phptx', Test::FAILED, "Missing data provider file '{$path}missing.ini'."], ['exitCode.die.phptx', Test::PASSED, null], ['exitCode.error1.phptx', Test::FAILED, 'Exited with error code 231 (expected 1)'], ['exitCode.error2.phptx', Test::FAILED, 'Exited with error code 231 (expected 0)'],