Nelmio\Alice\Throwable\Exception\LogicExceptionFactoryTest::testTestCreateForUncallableMethod PHP Method

testTestCreateForUncallableMethod() public method

    public function testTestCreateForUncallableMethod()
    {
        $exception = LogicExceptionFactory::createForUncallableMethod('foo');
        $this->assertEquals('By its nature, "foo()" should not be called.', $exception->getMessage());
        $this->assertEquals(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }