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

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

    public function testTestCreateForExpectedConfigurationArrayOfStringValue()
    {
        $exception = InvalidArgumentExceptionFactory::createForExpectedConfigurationArrayOfStringValue(10);
        $this->assertEquals('Expected an array of strings but got "integer" element in the array instead.', $exception->getMessage());
        $this->assertEquals(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }