Skip to content

Commit

Permalink
直接继承 PHPUnit\Framework\TestCase,提高单个测试文件的灵活性
Browse files Browse the repository at this point in the history
  • Loading branch information
ueaner committed Sep 12, 2017
1 parent 2d551e2 commit de16ae0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
3 changes: 2 additions & 1 deletion tests/Di/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

namespace Soli\Tests\Di;

use Soli\Tests\TestCase;
use PHPUnit\Framework\TestCase;

use Soli\Di\Container;
use Soli\Di\ContainerInterface;
use Soli\Di\ServiceInterface;
Expand Down
3 changes: 2 additions & 1 deletion tests/Di/ServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

namespace Soli\Tests\Di;

use Soli\Tests\TestCase;
use PHPUnit\Framework\TestCase;

use Soli\Di\Service;

class ServiceTest extends TestCase
Expand Down
7 changes: 0 additions & 7 deletions tests/TestCase.php

This file was deleted.

0 comments on commit de16ae0

Please sign in to comment.