PSR-2. I'm not a huge fan, but ugly consistency beats no consistency...

This commit is contained in:
Shish
2019-05-28 17:59:38 +01:00
parent 5ec3e89884
commit 34b05cca7c
295 changed files with 27094 additions and 24632 deletions

View File

@@ -1,18 +1,20 @@
<?php
class ImageIOTest extends ShimmiePHPUnitTestCase {
public function testUserStats() {
$this->log_in_as_user();
$image_id = $this->post_image("tests/pbx_screenshot.jpg", "test");
class ImageIOTest extends ShimmiePHPUnitTestCase
{
public function testUserStats()
{
$this->log_in_as_user();
$image_id = $this->post_image("tests/pbx_screenshot.jpg", "test");
// broken with sqlite?
//$this->get_page("user/test");
//$this->assert_text("Images uploaded: 1");
// broken with sqlite?
//$this->get_page("user/test");
//$this->assert_text("Images uploaded: 1");
//$this->click("Images uploaded");
//$this->assert_title("Image $image_id: test");
//$this->click("Images uploaded");
//$this->assert_title("Image $image_id: test");
# test that serving manually doesn't cause errors
$this->get_page("image/$image_id/moo.jpg");
$this->get_page("thumb/$image_id/moo.jpg");
}
# test that serving manually doesn't cause errors
$this->get_page("image/$image_id/moo.jpg");
$this->get_page("thumb/$image_id/moo.jpg");
}
}