Doctrine\Tests\Common\DataFixtures\ReferenceRepositoryTest::testThrowsExceptionTryingToGetWrongReference PHP Метод

testThrowsExceptionTryingToGetWrongReference() публичный Метод

    public function testThrowsExceptionTryingToGetWrongReference()
    {
        $referenceRepository = new ReferenceRepository($this->getMockSqliteEntityManager());
        $this->expectException(\OutOfBoundsException::class);
        $this->expectExceptionMessage('Reference to: (missing_reference) does not exist');
        $referenceRepository->getReference('missing_reference');
    }