DefaultConfigTest::expectException PHP Метод

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

public expectException ( $exception )
    public function expectException($exception)
    {
        //future-proofed expectException method
        if (method_exists(get_parent_class(), 'expectException')) {
            parent::expectException($exception);
        } else {
            $this->setExpectedException($exception);
        }
    }