Nelmio\Alice\Throwable\Exception\Generator\ObjectGenerator\ObjectGeneratorNotFoundExceptionFactoryTest::testTestCreateNewExceptionWithFactory PHP Method

testTestCreateNewExceptionWithFactory() public method

    public function testTestCreateNewExceptionWithFactory()
    {
        $exception = ObjectGeneratorNotFoundExceptionFactory::createUnexpectedCall('dummyMethod');
        $this->assertEquals('Expected method "dummyMethod" to be called only if it has a generator.', $exception->getMessage());
        $this->assertEquals(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }
ObjectGeneratorNotFoundExceptionFactoryTest