Пример #1
0
 public static function setupBeforeClass()
 {
     Finder::setIterator(new \ArrayIterator([new MockSplFileInfo('<?php namespace Iterator; interface Filter {}'), new MockSplFileInfo('<?php namespace Iterator; class NotFilter implements Filter {}'), new MockSplFileInfo('<?php namespace Iterator; class ClassIterator {}')]));
 }
Пример #2
0
 public static function setupBeforeClass()
 {
     MockFinder::setIterator(new \ArrayIterator([new MockSplFileInfo('<?php namespace foobar; use \\some\\name; class A {}'), new MockSplFileInfo('<?php interface Baz {}'), new MockSplFileInfo('<?php class B implements Baz {} class C extends \\foobar\\A implements Baz {}'), new MockSplFileInfo('<?php funct error(){}')]));
     self::$sut = new ClassIterator(new MockFinder());
     self::$sut->enableAutoloading();
 }