Skip to content

Commit

Permalink
release preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
mamuz committed Jul 2, 2015
1 parent 1b0e48f commit 48317d2
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Change Log
All notable changes to this project will be documented in this file.

## v0.1.1- UNRELEASED
## v0.1.2 - UNRELEASED
Nothing yet.
@todo Remove TraitUse aliases to keep annotationsparser alive

## v0.1.1 - 2015-07-02
### Added
- UnitTest Environment
- FuncCalls to files finder
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ The recommended way to install
- Validates availability of class dependencies.
- Removing comments and docblocks is optional to keep interoperability to annotation parser.
- PHP files with more than one class, interface or trait declarations will be skipped.
- PHP files with `include`, `include_once`, `require` or `require_once` statements will be skipped
- PHP files with `include`, `include_once`, `require` or `require_once` statements will be skipped.
- PHP files with function calls to handle files like `fopen` or `mkdir`will be skipped.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion src/MessageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

interface MessageInterface
{
const VERSION = 'dev-master';
const VERSION = 'v0.1.1';

const NAME = 'Squeezer';

Expand Down
13 changes: 11 additions & 2 deletions tests/SqueezeTest/FilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,27 @@ class FilterTest extends \PHPUnit_Framework_TestCase
/** @var \Squeeze\Collector | \Mockery\MockInterface */
protected $collector;

/** @var \Composer\Autoload\ClassLoader | \Mockery\MockInterface */
protected $classLoader;

protected function setUp()
{
$this->parser = \Mockery::mock('PhpParser\ParserAbstract');
$this->traverser = \Mockery::mock('PhpParser\NodeTraverser');
$this->collector = \Mockery::mock('Squeeze\Collector');
$this->classLoader = \Mockery::mock('Composer\Autoload\ClassLoader');

$this->fixture = new Filter($this->parser, $this->traverser, $this->collector);
$this->fixture = new Filter(
$this->parser,
$this->traverser,
$this->collector,
$this->classLoader
);
}

public function testExtractClassMap()
{
$this->collector->shouldReceive('getClassDependencyMap')->once()->andReturn(array());
$this->collector->shouldReceive('getClassMap')->once()->andReturn(array());

$iterator = \Mockery::mock('Iterator');
$iterator->shouldIgnoreMissing();
Expand Down

0 comments on commit 48317d2

Please sign in to comment.