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,15 +1,16 @@
<?php
class RSSCommentsTest extends ShimmiePHPUnitTestCase {
function testImageFeed() {
global $user;
$this->log_in_as_user();
$image_id = $this->post_image("tests/pbx_screenshot.jpg", "pbx");
send_event(new CommentPostingEvent($image_id, $user, "ASDFASDF"));
class RSSCommentsTest extends ShimmiePHPUnitTestCase
{
public function testImageFeed()
{
global $user;
$this->log_in_as_user();
$image_id = $this->post_image("tests/pbx_screenshot.jpg", "pbx");
send_event(new CommentPostingEvent($image_id, $user, "ASDFASDF"));
$this->get_page('rss/comments');
//$this->assert_mime("application/rss+xml");
$this->assert_no_content("Exception");
$this->assert_content("ASDFASDF");
$this->get_page('rss/comments');
//$this->assert_mime("application/rss+xml");
$this->assert_no_content("Exception");
$this->assert_content("ASDFASDF");
}
}