Permalink
Browse files

Fix tests

  • Loading branch information...
1 parent 3f7319b commit 8be4e480331ce038ac60118326cf8bb6d9ac3135 @c9s c9s committed Nov 10, 2012
@@ -6,10 +6,7 @@ class PackageTest extends \PHPUnit_Framework_TestCase
{
public function testShouldUseIniFileConfiguredDirectoryStructure()
{
- $logger = new \CLIFramework\Logger();
- $logger->quiet();
$config = new \Onion\PackageConfigReader();
- $config->setLogger($logger);
$package = $config->read(__DIR__ . '/fixtures/stub.ini');
@@ -20,10 +17,7 @@ public function testShouldUseIniFileConfiguredDirectoryStructure()
public function testShouldUseDefaultDirectoryStructure()
{
- $logger = new \CLIFramework\Logger();
- $logger->quiet();
$config = new \Onion\PackageConfigReader();
- $config->setLogger($logger);
$package = $config->read(__DIR__ . '/fixtures/stub_with_no_structure.ini');
@@ -15,12 +15,7 @@ class PackageConfigReaderTest extends PHPUnit_Framework_TestCase
function test()
{
- $logger = new \CLIFramework\Logger;
- ok( $logger );
- $logger->setLevel(0);
-
$reader = new PackageConfigReader;
- $reader->setLogger( $logger );
ob_start();
$reader->info( 'msg' );
@@ -21,7 +21,6 @@ function test()
$logger->setLevel( 0 ); // quite
$config = new \Onion\PackageConfigReader();
- $config->setLogger( $logger );
ok( $config );
$package = $config->read( 'package.ini' );
@@ -42,7 +41,6 @@ function test2()
$logger->setLevel( 0 );
$config = new \Onion\PackageConfigReader();
- $config->setLogger( $logger );
$package = $config->read( 'package.ini' );
$package->config->array['roles']['src'] = 'php';

0 comments on commit 8be4e48

Please sign in to comment.