Joli\JoliNotif\tests\NotifierFactoryTest::testCreateUsesTheFirstOfTheBestSupportedNotifiers PHP Метод

testCreateUsesTheFirstOfTheBestSupportedNotifiers() публичный Метод

    public function testCreateUsesTheFirstOfTheBestSupportedNotifiers()
    {
        $notifier1 = new ConfigurableNotifier(false);
        $notifier2 = new ConfigurableNotifier(true, 5);
        $notifier3 = new ConfigurableNotifier(true, 8);
        $notifier4 = new ConfigurableNotifier(false);
        $notifier5 = new ConfigurableNotifier(true, 8);
        $notifier = NotifierFactory::create([$notifier1, $notifier2, $notifier3, $notifier4, $notifier5]);
        $this->assertSame($notifier3, $notifier);
    }