Nelmio\Alice\Throwable\Exception\FixtureBuilder\Denormalizer\FlagParser\FlagParserExceptionFactoryTest::testTestCreateNewExceptionForUnexpectedCall PHP Method

testTestCreateNewExceptionForUnexpectedCall() public method

    public function testTestCreateNewExceptionForUnexpectedCall()
    {
        $exception = FlagParserExceptionFactory::createForExpectedMethodToBeCalledIfHasAParser('foo');
        $this->assertEquals('Expected method "foo" to be called only if it has a flag parser.', $exception->getMessage());
        $this->assertEquals(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }