Permalink
Browse files

added test

  • Loading branch information...
1 parent 72d6862 commit edc3ca766f5fabd31c7c9032704a678eacc75ec9 @arnaud-lb committed Oct 12, 2012
Showing with 35 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +7 −0 tests/test-traits-1.fixtures/a.php
  3. +17 −0 tests/test-traits-1.in
  4. +10 −0 tests/test-traits-1.ok
View
1 .gitignore
@@ -0,0 +1 @@
+tests/*.out
View
7 tests/test-traits-1.fixtures/a.php
@@ -0,0 +1,7 @@
+<?php
+
+namespace Foo;
+
+trait Bar {
+}
+
View
17 tests/test-traits-1.in
@@ -0,0 +1,17 @@
+
+Traits 1
+
+STARTTEST
+:%d
+a<?php
+
+namespace Somenamespace;
+
+class Someclass {
+
+ use FooTrait;
+ use Bar:call PhpInsertUse()
+ax:w! test.out
+:qa!
+ENDTEST
+
View
10 tests/test-traits-1.ok
@@ -0,0 +1,10 @@
+<?php
+
+namespace Somenamespace;
+
+use Foo\Bar;
+
+class Someclass {
+
+ use FooTrait;
+ use Barx

0 comments on commit edc3ca7

Please sign in to comment.