ControlTest::testRaceEmpty PHP Method

testRaceEmpty() public method

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