示例#1
0
 public function testNonExistentMethod()
 {
     $testEntity = TestEntity::createTestEntity();
     $testEntity->foobar();
 }
示例#2
0
 public function testUpdate()
 {
     $testEntity = TestEntity::createTestEntity();
     self::$entityManager->persist($testEntity);
     self::$entityManager->flush();
     $this->assertNotEquals('fubar', $testEntity->getName());
     $testEntity->setName('fubar');
     TestEntityService::update();
     $entities = self::$entityManager->createQuery('SELECT e FROM Rexmac\\Zyndax\\Doctrine\\Entity\\TestEntity e')->execute();
     $this->assertEquals('fubar', $entities[0]->getName());
 }