Skip to content

Commit

Permalink
Change codeception to phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
gabbanaesteban committed Apr 11, 2019
1 parent 37ff9b7 commit 3d92c73
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 29 deletions.
24 changes: 0 additions & 24 deletions codeception.yml

This file was deleted.

6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
}
],
"scripts": {
"test": "./vendor/bin/codecept run"
"test": "./vendor/bin/phpunit tests/*Test.php"
},
"require": {
"php": "^7.0"
},
"require-dev": {
"codeception/codeception": "^2.5"
"phpunit/phpunit": "^7"
},
"autoload": {
"psr-4": {
"Baka\\Support\\": "src/"
}
},
"minimum-stability": "dev"
}
}
27 changes: 27 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true"
>
<testsuites>
<testsuite name="support/tests">
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src/</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-text" target="php://stdout" showUncoveredFiles="true"/>
<log type="coverage-clover" target="coverage.xml" showUncoveredFiles="true"/>
</logging>
</phpunit>
5 changes: 4 additions & 1 deletion tests/ArrTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php

declare(strict_types=1);

use Baka\Support\Arr;
use PHPUnit\Framework\TestCase;

class ArrTest extends \Codeception\Test\Unit
class ArrTest extends TestCase
{
public function testAll()
{
Expand Down
5 changes: 4 additions & 1 deletion tests/StrTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php

declare(strict_types=1);

use Baka\Support\Str;
use PHPUnit\Framework\TestCase;

class StrTest extends \Codeception\Test\Unit
class StrTest extends TestCase
{
public function testEndsWith()
{
Expand Down

0 comments on commit 3d92c73

Please sign in to comment.