Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"require-dev": {
"symfony/filesystem": "^4.4|^5.4|^6.0",
"phpunit/phpunit": "^9.5"
"phpunit/phpunit": "^9.6|^10.5|^11.1"
},
"autoload": {
"psr-4": { "MyBuilder\\Cronos\\": "src" }
Expand Down
2 changes: 2 additions & 0 deletions tests/Formatter/CronTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace MyBuilder\Cronos\Tests\Formatter;

use MyBuilder\Cronos\Formatter\Cron;
use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\TestCase;

class CronTest extends TestCase
Expand All @@ -17,6 +18,7 @@ protected function setUp(): void
/**
* @test
*/
#[Test]
public function shouldBuildConfiguration(): void
{
$this->cron
Expand Down
4 changes: 4 additions & 0 deletions tests/Updater/CronUpdaterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use MyBuilder\Cronos\Formatter\Cron;
use MyBuilder\Cronos\Updater\CronManipulator;
use MyBuilder\Cronos\Updater\CronUpdater;
use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\TestCase;

class CronUpdaterTest extends TestCase
Expand All @@ -22,6 +23,7 @@ protected function setUp(): void
/**
* @test
*/
#[Test]
public function shouldReplaceContent(): void
{
$this->updater->replaceWith(new Cron());
Expand All @@ -32,6 +34,7 @@ public function shouldReplaceContent(): void
/**
* @test
*/
#[Test]
public function shouldAppendKeyIfNotExist(): void
{
$this->manipulatorStub->contents = <<<CRON
Expand Down Expand Up @@ -67,6 +70,7 @@ public function shouldAppendKeyIfNotExist(): void
/**
* @test
*/
#[Test]
public function shouldReplaceKeyIfExist(): void
{
$this->manipulatorStub->contents = <<<CRON
Expand Down