Extension\Oo\OoParamsTest::testSetStrictAverageException2 PHP Метод

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

    public function testSetStrictAverageException2()
    {
        $t = new \Test\Oo\OoParams();
        if (!method_exists('PHPUnit_Runner_Version', 'id') || version_compare(\PHPUnit_Runner_Version::id(), '5.2.0', '<')) {
            $this->setExpectedException('\\InvalidArgumentException');
        } else {
            $this->expectException('\\InvalidArgumentException');
        }
        $t->setStrictAverage('17');
    }