Changeset 4918 for trunk/tests/Orm

Show
Ignore:
Timestamp:
09/12/08 10:37:05 (4 months ago)
Author:
romanb
Message:

moved entity/entitymanager exceptions

Location:
trunk/tests/Orm
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/Orm/Component/AccessTest.php

    r4877 r4918  
    9797    /** 
    9898     * @test  
    99      * @expectedException Doctrine_Entity_Exception 
     99     * @expectedException Doctrine_ORM_Exceptions_EntityException 
    100100     */ 
    101101    public function shouldNotBeAbleToSetNonExistantField() 
     
    106106    /** 
    107107     * @test  
    108      * @expectedException Doctrine_Entity_Exception 
     108     * @expectedException Doctrine_ORM_Exceptions_EntityException 
    109109     */ 
    110110    public function shouldNotBeAbleToSetNonExistantFieldWithOffset() 
  • trunk/tests/Orm/EntityManagerTest.php

    r4776 r4918  
    1515            $this->_em->setFlushMode('foobar'); 
    1616            $this->fail("Setting invalid flushmode did not trigger exception."); 
    17         } catch (Doctrine_EntityManager_Exception $expected) {} 
     17        } catch (Doctrine_ORM_Exceptions_EntityManagerException $expected) {} 
    1818        $this->_em->setFlushMode($prev); 
    1919    }