ImboUnitTest\EventManager\EventManagerTest::testCanIncludeAndExcludeUsers PHP Method

testCanIncludeAndExcludeUsers() public method

public testCanIncludeAndExcludeUsers ( $user, $users, $output = '' )
    public function testCanIncludeAndExcludeUsers($user, $users, $output = '')
    {
        $callback = function ($event) {
            echo '1';
        };
        $this->manager->addEventHandler('handler', $callback)->addCallbacks('handler', ['event' => 0], $users);
        $this->request->expects($this->any())->method('getUser')->will($this->returnValue($user));
        $this->expectOutputString($output);
        $this->manager->trigger('event');
    }