Nelmio\Alice\Throwable\Exception\InvalidArgumentExceptionFactoryTest::testTestCreateForExpectedConfigurationPositiveIntegerValue PHP Метод

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

    public function testTestCreateForExpectedConfigurationPositiveIntegerValue()
    {
        $exception = InvalidArgumentExceptionFactory::createForExpectedConfigurationPositiveIntegerValue(-1);
        $this->assertEquals('Expected a strictly positive integer but got "-1" instead.', $exception->getMessage());
        $this->assertEquals(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }