Skip to content

Commit

Permalink
extract nonClassUse to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed Sep 7, 2016
1 parent 428e80f commit a46d92b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
18 changes: 18 additions & 0 deletions tests/UseStatements.nonClassUse.phpt
@@ -0,0 +1,18 @@
<?php

/**
* @phpVersion 7
*/

use Kdyby\ParseUseStatements\UseStatements;
use Tester\Assert;

require_once __DIR__ . '/bootstrap.php';

require __DIR__ . '/files/nonClassUse.php';


Assert::same(
[],
UseStatements::getUseStatements(new ReflectionClass('NonClassUseTest'))
);
6 changes: 0 additions & 6 deletions tests/UseStatements.phpt
Expand Up @@ -9,7 +9,6 @@ require __DIR__ . '/files/noNamespace.php';
require __DIR__ . '/files/bracketedNamespace.php';
require __DIR__ . '/files/inNamespace.php';
require __DIR__ . '/files/twoBlocks.php';
require __DIR__ . '/files/nonClassUse.php';


$rcNoNamespace = new \ReflectionClass('NoNamespace');
Expand Down Expand Up @@ -124,8 +123,3 @@ Assert::same(
[],
UseStatements::getUseStatements(new ReflectionClass('stdClass'))
);

Assert::same(
[],
UseStatements::getUseStatements(new ReflectionClass('NonClassUseTest'))
);

0 comments on commit a46d92b

Please sign in to comment.