ControlTest::testAnyEmpty PHP Method

testAnyEmpty() public method

public testAnyEmpty ( )
    public function testAnyEmpty()
    {
        try {
            Co::wait(Co::any(['A', 'B']));
            $this->assertTrue(false);
        } catch (AllFailedException $e) {
            $this->assertEquals('Co::any() failed.', $e->getMessage());
            $this->assertEquals(['A', 'B'], $e->getReasons());
        }
    }