log_in_as_user(); $this->post_image("tests/pbx_screenshot.jpg", "pbx computer screenshot"); $this->assert_no_text("Image too large"); $this->assert_no_text("Image too small"); $this->assert_no_text("ratio"); } /* public function testFail() { $this->log_in_as_user(); try { $this->post_image("tests/pbx_screenshot.jpg", "pbx computer screenshot"); $this->assertTrue(false, "Invalid-size image was allowed"); } catch (UploadException $e) { $this->assertEquals("Image too small", $e->getMessage()); } } */ }