public function teardown()
 {
     RelationTestPerson::cleanup();
 }
예제 #2
0
파일: load_test.php 프로젝트: bmdevel/ezc
 public function testSubSelectDifferentClass()
 {
     RelationTestPerson::setupTables($this->session->database);
     RelationTestPerson::insertData($this->session->database);
     $q = $this->session->createFindQuery('RelationTestPerson');
     $subQ = $this->session->createSubQuery($q, 'RelationTestBirthday');
     $subQ->select('person');
     $q->where($q->expr->in('id', $subQ));
     $stmt = $q->prepare();
     $this->assertTrue($stmt->execute());
     $this->assertEquals(2, count($stmt->fetchAll()));
     RelationTestPerson::cleanup($this->session->database);
 }