Joli\JoliNotif\tests\NotifierFactoryTest::testCreateUsesTheFirstSupportedNotifierWhenNoPrioritiesAreGiven PHP Method

testCreateUsesTheFirstSupportedNotifierWhenNoPrioritiesAreGiven() public method

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