Upgrade to KH 3.3.0
This commit is contained in:
10
includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/classExtendsNamespacedClass.php
vendored
Normal file
10
includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/classExtendsNamespacedClass.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Foo\Bar;
|
||||
|
||||
class Baz {}
|
||||
|
||||
namespace Other\Space;
|
||||
|
||||
class Extender extends \Foo\Bar\Baz {}
|
||||
|
6
includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/classInNamespace.php
vendored
Normal file
6
includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/classInNamespace.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
namespace Foo\Bar;
|
||||
|
||||
class TestClass
|
||||
{
|
||||
}
|
9
includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/classInScopedNamespace.php
vendored
Normal file
9
includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/classInScopedNamespace.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
namespace Foo\BarScoped {
|
||||
|
||||
class TestClass {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
3
includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/issue19.php
vendored
Normal file
3
includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/issue19.php
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
class TestClass {
|
||||
}
|
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace Foo\Bar;
|
||||
|
||||
class TestClassInBar
|
||||
{
|
||||
}
|
||||
|
||||
namespace Foo\Baz;
|
||||
|
||||
class TestClassInBaz
|
||||
{
|
||||
}
|
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
namespace Foo\Bar
|
||||
{
|
||||
class TestClassInBar
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
namespace Foo\Baz
|
||||
{
|
||||
class TestClassInBaz
|
||||
{
|
||||
}
|
||||
}
|
32
includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/source.php
vendored
Normal file
32
includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/source.php
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* Some comment
|
||||
*/
|
||||
class Foo{function foo(){}
|
||||
|
||||
/**
|
||||
* @param Baz $baz
|
||||
*/
|
||||
public function bar(Baz $baz)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Foobar $foobar
|
||||
*/
|
||||
static public function foobar(Foobar $foobar)
|
||||
{
|
||||
}
|
||||
|
||||
public function barfoo(Barfoo $barfoo)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* This docblock does not belong to the baz function
|
||||
*/
|
||||
|
||||
public function baz()
|
||||
{
|
||||
}
|
||||
}
|
6
includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/source2.php
vendored
Normal file
6
includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/source2.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
// short desc
|
||||
abstract class A {
|
||||
/* abst meth: */
|
||||
public static abstract function method();
|
||||
}
|
14
includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/source3.php
vendored
Normal file
14
includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/source3.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
// This file is example#1
|
||||
// from http://www.php.net/manual/en/function.get-included-files.php
|
||||
|
||||
include 'test1.php';
|
||||
include_once 'test2.php';
|
||||
require 'test3.php';
|
||||
require_once 'test4.php';
|
||||
|
||||
$included_files = get_included_files();
|
||||
|
||||
foreach ($included_files as $filename) {
|
||||
echo "$filename\n";
|
||||
}
|
30
includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/source4.php
vendored
Normal file
30
includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/source4.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
// Declare the interface 'iTemplate'
|
||||
interface iTemplate
|
||||
{
|
||||
public function setVariable($name, $var);
|
||||
public function
|
||||
getHtml($template);
|
||||
}
|
||||
|
||||
interface a
|
||||
{
|
||||
public function foo();
|
||||
}
|
||||
|
||||
interface b extends a
|
||||
{
|
||||
public function baz(Baz $baz);
|
||||
}
|
||||
|
||||
// short desc for class that implement a unique interface
|
||||
class c implements b
|
||||
{
|
||||
public function foo()
|
||||
{
|
||||
}
|
||||
|
||||
public function baz(Baz $baz)
|
||||
{
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user