Skip to content
Browse files

code cleanups as suggested by @stof

  • Loading branch information...
1 parent a497704 commit d95889a98d32a7f7cbfbb21ea5cadbe4aaf01eef Matt Lehner committed Apr 20, 2012
View
8 tests/Monolog/Formatter/GelfMessageFormatterTest.php
@@ -18,7 +18,7 @@ class GelfMessageFormatterTest extends \PHPUnit_Framework_TestCase
/**
* @covers Monolog\Formatter\GelfMessageFormatter::format
*/
- function testDefaultFormatter()
+ public function testDefaultFormatter()
{
$formatter = new GelfMessageFormatter();
$record = array(
@@ -53,7 +53,7 @@ function testDefaultFormatter()
/**
* @covers Monolog\Formatter\GelfMessageFormatter::format
*/
- function testFormatWithFileAndLine()
+ public function testFormatWithFileAndLine()
{
$formatter = new GelfMessageFormatter();
$record = array(
@@ -76,7 +76,7 @@ function testFormatWithFileAndLine()
/**
* @covers Monolog\Formatter\GelfMessageFormatter::format
*/
- function testFormatWithContext()
+ public function testFormatWithContext()
{
$formatter = new GelfMessageFormatter();
$record = array(
@@ -114,7 +114,7 @@ function testFormatWithContext()
/**
* @covers Monolog\Formatter\GelfMessageFormatter::format
*/
- function testFormatWithExtra()
+ public function testFormatWithExtra()
{
$formatter = new GelfMessageFormatter();
$record = array(
View
5 tests/Monolog/Handler/GelfHandlerTest.php
@@ -30,9 +30,8 @@ class GelfHandlerTest extends TestCase
{
public function setUp()
{
- if (!class_exists("Gelf\MessagePublisher"))
- {
- $this->markTestSkipped("https://github.com/mlehner/gelf-php not installed");
+ if (!class_exists("Gelf\MessagePublisher")) {
+ $this->markTestSkipped("mlehner/gelf-php not installed");
}
}
View
2 tests/bootstrap.php
@@ -9,5 +9,5 @@
* file that was distributed with this source code.
*/
-require_once __DIR__ . "/../vendor/.composer/autoload.php";
+require_once __DIR__ . "/../vendor/autoload.php";
require_once __DIR__.'/Monolog/TestCase.php';

0 comments on commit d95889a

Please sign in to comment.
Something went wrong with that request. Please try again.