diff --git a/CHANGELOG.md b/CHANGELOG.md index a03c56d..762dc2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index ea2adfe..143f0ea 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/MessageInterface.php b/src/MessageInterface.php index c5c78da..659bdce 100644 --- a/src/MessageInterface.php +++ b/src/MessageInterface.php @@ -27,7 +27,7 @@ interface MessageInterface { - const VERSION = 'dev-master'; + const VERSION = 'v0.1.1'; const NAME = 'Squeezer'; diff --git a/tests/SqueezeTest/FilterTest.php b/tests/SqueezeTest/FilterTest.php index 28c287a..a84de02 100644 --- a/tests/SqueezeTest/FilterTest.php +++ b/tests/SqueezeTest/FilterTest.php @@ -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();