Location: PHPKode > projects > PIMF > gjerokrsteski-pimf-6b28215/tests/Pimf/EntityManagerTest.php
<?php
class Pimf_EntityManagerTest extends PHPUnit_Framework_TestCase
{
  public function testCreatingNewInstance()
  {
    new Pimf_EntityManager(new Pimf_PDO('sqlite::memory:'));
  }

  /**
   * @expectedException BadMethodCallException
   */
  public function testLoadingNotExistingEntity()
  {
    $em = new Pimf_EntityManager(new Pimf_PDO('sqlite::memory:'));

    $em->load('notexistingentity');
  }
}
Return current item: PIMF