2017-02-15 13:08:17 -05:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
/**
|
2017-02-15 16:13:32 -05:00
|
|
|
* Hummingbird Anime List Client
|
2017-02-15 13:08:17 -05:00
|
|
|
*
|
|
|
|
* An API client for Kitsu and MyAnimeList to manage anime and manga watch lists
|
|
|
|
*
|
|
|
|
* PHP version 7
|
|
|
|
*
|
2017-02-15 16:13:32 -05:00
|
|
|
* @package HummingbirdAnimeClient
|
2017-02-15 13:08:17 -05:00
|
|
|
* @author Timothy J. Warren <tim@timshomepage.net>
|
|
|
|
* @copyright 2015 - 2017 Timothy J. Warren
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
|
|
|
* @version 4.0
|
|
|
|
* @link https://github.com/timw4mail/HummingBirdAnimeClient
|
|
|
|
*/
|
2016-04-19 14:51:58 -04:00
|
|
|
|
2017-02-15 11:49:38 -05:00
|
|
|
namespace Aviat\AnimeClient\Tests\Command;
|
|
|
|
|
2016-04-19 14:51:58 -04:00
|
|
|
use Aviat\AnimeClient\Command\BaseCommand;
|
2017-02-15 16:40:18 -05:00
|
|
|
use Aviat\AnimeClient\Tests\AnimeClientTestCase;
|
2016-10-20 22:32:17 -04:00
|
|
|
use Aviat\Ion\Friend;
|
|
|
|
use ConsoleKit\Console;
|
2016-04-19 14:51:58 -04:00
|
|
|
|
2017-02-15 16:40:18 -05:00
|
|
|
class BaseCommandTest extends AnimeClientTestCase {
|
2017-02-22 15:08:29 -05:00
|
|
|
protected $base;
|
|
|
|
protected $friend;
|
|
|
|
|
2016-04-19 14:51:58 -04:00
|
|
|
public function setUp()
|
|
|
|
{
|
|
|
|
$this->base = new BaseCommand(new Console());
|
|
|
|
$this->friend = new Friend($this->base);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testSetupContainer()
|
|
|
|
{
|
|
|
|
$container = $this->friend->setupContainer();
|
|
|
|
$this->assertInstanceOf('Aviat\Ion\Di\Container', $container);
|
|
|
|
}
|
|
|
|
}
|