mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-21 14:57:52 +00:00
20 lines
819 B
PHP
20 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'));
|
|
}
|
|
}
|