/** * @expectedException UndefinedEndpointException */ public function testUndefinedSecondLevel() { $teachers = CleverTeacher::all(array('limit' => 1)); $teacher = $teachers[0]; $objs = $teacher->eventz(); }
public function testAllLimit() { authorizeFromEnv(); $events = CleverTeacher::all(array("limit" => 1)); $this->assertEquals(count($events), 1); }