mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-09-15 05:35:37 +00:00
20862be7d0
- slim/slim: ^3.1 - symfony/expression-language: ^3.4 - fxp/composer-asset-plugin: ~1.3 - bower-asset/vue: ^2.5 - bower-asset/vue-resource: ^1.5
58 lines
1.7 KiB
PHP
58 lines
1.7 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Fxp Composer Asset Plugin package.
|
|
*
|
|
* (c) François Pluchino <francois.pluchino@gmail.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Fxp\Composer\AssetPlugin\Tests\Type;
|
|
|
|
use Fxp\Composer\AssetPlugin\Converter\PackageConverterInterface;
|
|
use Fxp\Composer\AssetPlugin\Converter\VersionConverterInterface;
|
|
use Fxp\Composer\AssetPlugin\Type\AssetTypeInterface;
|
|
|
|
/**
|
|
* Abstract class for tests of asset type.
|
|
*
|
|
* @author François Pluchino <francois.pluchino@gmail.com>
|
|
*/
|
|
abstract class AbstractAssetTypeTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
/**
|
|
* @var PackageConverterInterface
|
|
*/
|
|
protected $packageConverter;
|
|
|
|
/**
|
|
* @var VersionConverterInterface
|
|
*/
|
|
protected $versionConverter;
|
|
|
|
/**
|
|
* @var AssetTypeInterface
|
|
*/
|
|
protected $type;
|
|
|
|
protected function setUp()
|
|
{
|
|
$this->packageConverter = $this->getMockBuilder('Fxp\Composer\AssetPlugin\Converter\PackageConverterInterface')->getMock();
|
|
$this->versionConverter = $this->getMockBuilder('Fxp\Composer\AssetPlugin\Converter\VersionConverterInterface')->getMock();
|
|
}
|
|
|
|
protected function tearDown()
|
|
{
|
|
$this->packageConverter = null;
|
|
$this->versionConverter = null;
|
|
$this->type = null;
|
|
}
|
|
|
|
public function testConverter()
|
|
{
|
|
$this->assertInstanceOf('Fxp\Composer\AssetPlugin\Converter\PackageConverterInterface', $this->type->getPackageConverter());
|
|
$this->assertInstanceOf('Fxp\Composer\AssetPlugin\Converter\VersionConverterInterface', $this->type->getVersionConverter());
|
|
}
|
|
}
|