Skip to content

Commit

Permalink
Added test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalyiegorov committed Jan 10, 2015
1 parent e379286 commit 04fedf5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/MainTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ public function setUp()
$this->fileService->init();
}

/** Test configuration of inner file service */
public function testConfigure()
{
require(__DIR__.'/TestEntityConfig.php');
$this->fileService->configure(new TestEntityConfig());

$this->assertArrayHasKey('testParam', $this->fileService->configuration);
}

/** Test isDir */
public function testIsDir()
{
Expand Down
15 changes: 15 additions & 0 deletions tests/TestEntityConfig.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
/**
* Created by PhpStorm.
* User: egorov
* Date: 10.01.2015
* Time: 18:32
*/

namespace tests;


class TestEntityConfig extends \samsonos\config\Entity
{
public $testParam = 'testParam';
}

0 comments on commit 04fedf5

Please sign in to comment.