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

testTestCreateForFixtureExtendingANonTemplateFixture() public method

    public function testTestCreateForFixtureExtendingANonTemplateFixture()
    {
        $exception = InvalidArgumentExceptionFactory::createForFixtureExtendingANonTemplateFixture(new DummyFixture('foo'), 'bar');
        $this->assertEquals('Fixture "foo" extends "bar" but "bar" is not a template.', $exception->getMessage());
        $this->assertEquals(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }