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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/composer.lock
/vendor
.phpunit.cache
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@
}
],
"require": {
"php": ">=7.1.0",
"php": ">=8.1.0",
"atlas/info": "~1.0",
"atlas/mapper": "~1.0",
"psr/log": "~1.0"
"psr/log": "^1.0 || ^2.0 || ^3.0"
},
"autoload": {
"psr-4": {
"Atlas\\Cli\\": "src/"
}
},
"require-dev": {
"phpunit/phpunit": "~7.0",
"phpunit/phpunit": "~10.0 || ~11.0 || ~12.0",
"pds/skeleton": "~1.0"
},
"autoload-dev": {
Expand Down
23 changes: 12 additions & 11 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<phpunit bootstrap="phpunit.php">
<testsuites>
<testsuite name="atlas/cli">
<directory>tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="phpunit.php" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="atlas/cli">
<directory>tests/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>
1 change: 1 addition & 0 deletions src/Skeleton.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class Skeleton
protected $templates = [];
protected $namespace;
protected $types = [];
protected $transform;

public function __construct(Config $config, Fsio $fsio, Logger $logger)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/FsioTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class FsioTest extends \PHPUnit\Framework\TestCase
protected $fsio;
protected $base;

protected function setUp()
protected function setUp() : void
{
$this->fsio = new Fsio();
$this->base = __DIR__ . DIRECTORY_SEPARATOR . 'tmp';
Expand Down
2 changes: 1 addition & 1 deletion tests/SkeletonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class SkeletonTest extends \PHPUnit\Framework\TestCase
protected $stdout;
protected $factory;

protected function setUp()
protected function setUp() : void
{
$this->fsio = $this->newFsio();
$this->stdout = fopen('php://memory', 'w+');
Expand Down