2023-06-11 04:16:03 +03:00
|
|
|
<?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'));
|
2023-09-21 23:05:55 +03:00
|
|
|
// $this->assertSame('TwitterBridge', $sut->createBridgeClassName('twitterbridge'));
|
|
|
|
// $this->assertSame('TwitterBridge', $sut->createBridgeClassName('twitter'));
|
|
|
|
// $this->assertSame('TwitterBridge', $sut->createBridgeClassName('tWitTer'));
|
|
|
|
// $this->assertSame('TwitterBridge', $sut->createBridgeClassName('TWITTERBRIDGE'));
|
2023-06-11 04:16:03 +03:00
|
|
|
}
|
|
|
|
}
|