mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-19 01:20:58 +03:00
19 lines
819 B
PHP
19 lines
819 B
PHP
<?php
|
|
|
|
namespace RssBridge\Tests;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class BridgeFactoryTest extends TestCase
|
|
{
|
|
public function testNormalizeBridgeName()
|
|
{
|
|
$this->assertSame('TwitterBridge', \BridgeFactory::normalizeBridgeName('TwitterBridge'));
|
|
$this->assertSame('TwitterBridge', \BridgeFactory::normalizeBridgeName('TwitterBridge.php'));
|
|
$this->assertSame('TwitterBridge', \BridgeFactory::normalizeBridgeName('Twitter'));
|
|
// $this->assertSame('TwitterBridge', $sut->createBridgeClassName('twitterbridge'));
|
|
// $this->assertSame('TwitterBridge', $sut->createBridgeClassName('twitter'));
|
|
// $this->assertSame('TwitterBridge', $sut->createBridgeClassName('tWitTer'));
|
|
// $this->assertSame('TwitterBridge', $sut->createBridgeClassName('TWITTERBRIDGE'));
|
|
}
|
|
}
|