Пример #1
0
 public function testAllLimit()
 {
     authorizeFromEnv();
     $events = CleverTeacher::all(array("limit" => 1));
     $this->assertEquals(count($events), 1);
 }
Пример #2
0
 /**
  * @expectedException UndefinedEndpointException
  */
 public function testUndefinedSecondLevel()
 {
     $teachers = CleverTeacher::all(array('limit' => 1));
     $teacher = $teachers[0];
     $objs = $teacher->eventz();
 }
Пример #3
0
 public static function init()
 {
     self::$secondLevelEndpoints = array('sections' => array(), 'school' => array(), 'district' => array(), 'students' => array(), 'events' => array());
 }