Migrates to Pint

This commit is contained in:
Nuno Maduro
2022-09-16 10:45:53 +01:00
parent 579b975318
commit e9564febaf
94 changed files with 413 additions and 471 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ it('show only the names of multiple named datasets in their description', functi
],
[
'three' => [3],
'four' => [[4]],
'four' => [[4]],
],
]));
+1 -3
View File
@@ -1,9 +1,7 @@
<?php
use Pest\Plugins\Version;
use function Pest\version;
use Symfony\Component\Console\Output\BufferedOutput;
it('outputs the version when --version is used', function () {
@@ -11,7 +9,7 @@ it('outputs the version when --version is used', function () {
$plugin = new Version($output);
$plugin->handleArguments(['foo', '--version']);
expect($output->fetch())->toContain('Pest ' . version());
expect($output->fetch())->toContain('Pest '.version());
});
it('do not outputs version when --version is not used', function () {
+2 -1
View File
@@ -10,7 +10,8 @@ it('gets file name from closure', function () {
});
it('gets property values', function () {
$class = new class() {
$class = new class()
{
private $foo = 'bar';
};
+3 -3
View File
@@ -8,7 +8,7 @@ use Pest\TestSuite;
it('does not allow to add the same test description twice', function () {
$testSuite = new TestSuite(getcwd(), 'tests');
$method = new TestCaseMethodFactory('foo', 'bar', null);
$method = new TestCaseMethodFactory('foo', 'bar', null);
$testSuite->tests->set($method);
$testSuite->tests->set($method);
@@ -44,7 +44,7 @@ it('can return an array of all test suite filenames', function () {
it('can filter the test suite filenames to those with the only method', function () {
$testSuite = new TestSuite(getcwd(), 'tests');
$testWithOnly = new TestCaseMethodFactory('a', 'b', null);
$testWithOnly = new TestCaseMethodFactory('a', 'b', null);
$testWithOnly->only = true;
$testSuite->tests->set($testWithOnly);
@@ -63,7 +63,7 @@ it('does not filter the test suite filenames to those with the only method when
$test = function () {
};
$testWithOnly = new TestCaseMethodFactory('a', 'b', null);
$testWithOnly = new TestCaseMethodFactory('a', 'b', null);
$testWithOnly->only = true;
$testSuite->tests->set($testWithOnly);