Nelmio\Alice\Throwable\Exception\InvalidArgumentExceptionFactoryTest::testTestCreateForInvalidReferenceType PHP Method

testTestCreateForInvalidReferenceType() public method

    public function testTestCreateForInvalidReferenceType()
    {
        $exception = InvalidArgumentExceptionFactory::createForInvalidReferenceType('foo');
        $this->assertEquals('Expected reference to be either a string or a "Nelmio\\Alice\\Definition\\ValueInterface" instance, got "foo"' . ' instead.', $exception->getMessage());
        $this->assertEquals(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }