lib/knj/php_parser/tests/test.rb in knjrbfw-0.0.8 vs lib/knj/php_parser/tests/test.rb in knjrbfw-0.0.9
- old
+ new
@@ -1,12 +1,12 @@
require "knj/autoload"
-require "knj/php"
-require "knj/php_parser/php_parser"
+require "#{$knjpath}php"
+require "#{$knjpath}php_parser/php_parser"
module Knj::Php_parser::Functions
- def self.my_function(phpvar_arg)
- Knj::Php.print("Hejsa.\n")
- Knj::Php.print(phpvar_arg + "\n")
- end
+ def self.my_function(phpvar_arg)
+ Knj::Php.print("Hejsa.\n")
+ Knj::Php.print(phpvar_arg + "\n")
+ end
end
Knj::Php_parser::Functions.my_function("Helloworld.")