Doctrine\Tests\ODM\CouchDB\Functional\BasicCrudTest::testFindWrongTypesDoesNotMessUnitOfWork PHP Метод

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

    public function testFindWrongTypesDoesNotMessUnitOfWork()
    {
        try {
            $user1 = $this->dm->find(__NAMESPACE__ . '\\User2', 1);
            $this->fail('Expecting InvalidDocumentTypeException');
        } catch (InvalidDocumentTypeException $e) {
        }
        $user1 = $this->dm->find(__NAMESPACE__ . '\\User', 1);
        $this->assertEquals('lsmith', $user1->username);
    }