-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved trait test to {hidanjkezor/traits_fix} branch
- Loading branch information
Showing
32 changed files
with
157 additions
and
195 deletions.
There are no files selected for viewing
6 changes: 1 addition & 5 deletions
6
tests/phpt/modulite/012_package_not_required_in_derived_class/012_package_not_requied_ok.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
@ok | ||
KPHP_COMPOSER_ROOT={dir} | ||
<?php | ||
#ifndef KPHP | ||
require_once 'kphp_tester_include.php'; | ||
#endif | ||
require_once __DIR__ . '/vendor/autoload.php'; | ||
require_once __DIR__ . '/Dinosaur012/EoraptorLunensis012.php'; | ||
|
||
\Dinosaur012\EoraptorLunensis012::roar2(); | ||
\Printer012\Printer012::print(); |
12 changes: 0 additions & 12 deletions
12
...phpt/modulite/012_package_not_required_in_derived_class/Archosauria012/Thecodontia012.php
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
...phpt/modulite/012_package_not_required_in_derived_class/BasePrinter012/BasePrinter012.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace BasePrinter012; | ||
|
||
use Vk\TestSrt\SomeStr; | ||
|
||
class BasePrinter012 { | ||
final public static function basePrint(): void { | ||
$r1 = new SomeStr(); | ||
echo "BasePrint\n"; | ||
} | ||
} |
18 changes: 0 additions & 18 deletions
18
tests/phpt/modulite/012_package_not_required_in_derived_class/Dinosaur012/.modulite.yaml
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...pt/modulite/012_package_not_required_in_derived_class/Dinosaur012/EoraptorLunensis012.php
This file was deleted.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
...aits_two_modules/Photos014/.modulite.yaml → ...n_derived_class/Printer012/.modulite.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
name: "@photos" | ||
name: "@printer012" | ||
description: "" | ||
namespace: "Photos014\\" | ||
namespace: "Printer012\\" | ||
|
||
# "Public API" of the modulite: classes, functions, constants, etc. | ||
# Symbols not listed here will be internal. | ||
export: | ||
- "Photo014" | ||
- "Printer012" | ||
|
||
# Class members to exclude, they override "export". | ||
force-internal: | ||
|
||
# Dependencies: other modulites, global classes, defines, etc. | ||
require: | ||
|
||
- "\\BasePrinter012\\BasePrinter012" | ||
|
||
# Granting partial access to internal symbols, "as an exception". | ||
allow-internal-access: |
13 changes: 13 additions & 0 deletions
13
tests/phpt/modulite/012_package_not_required_in_derived_class/Printer012/Printer012.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Printer012; | ||
|
||
use BasePrinter012\BasePrinter012; | ||
|
||
class Printer012 extends BasePrinter012 { | ||
|
||
public static function print(): void { | ||
self::basePrint(); | ||
echo "print\n"; | ||
} | ||
} |
15 changes: 7 additions & 8 deletions
15
tests/phpt/modulite/012_package_not_required_in_derived_class/composer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
{ | ||
"name": "vk/str-strings", | ||
"type": "library", | ||
"license": "MIT", | ||
"name": "phpt/012", | ||
"autoload": { | ||
"psr-4": { | ||
"Archosauria\\": "./Archosauria", | ||
"Dinosaur\\": "./Dinosaur", | ||
"Vk\\TestSrt\\": "./Packages/vk-strings/src" | ||
"BasePrinter012\\": "./BasePrinter012", | ||
"Printer012\\": "./Printer012" | ||
} | ||
}, | ||
"require": {}, | ||
"require": { | ||
"vk/strings": "*" | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "path", | ||
"url": "./Packages/vk-strings" | ||
"url": "./packages/vk-strings" | ||
} | ||
] | ||
} |
23 changes: 21 additions & 2 deletions
23
tests/phpt/modulite/012_package_not_required_in_derived_class/composer.lock
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 23 additions & 1 deletion
24
tests/phpt/modulite/012_package_not_required_in_derived_class/vendor/composer/installed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,27 @@ | ||
{ | ||
"packages": [], | ||
"packages": [ | ||
{ | ||
"name": "vk/strings", | ||
"version": "0.0.1", | ||
"version_normalized": "0.0.1.0", | ||
"dist": { | ||
"type": "path", | ||
"url": "./packages/vk-strings", | ||
"reference": "0bbbd1fe63f5142d8c529bb2d8d6651418afe292" | ||
}, | ||
"type": "library", | ||
"installation-source": "dist", | ||
"autoload": { | ||
"psr-4": { | ||
"Vk\\TestSrt\\": "src/" | ||
} | ||
}, | ||
"transport-options": { | ||
"relative": true | ||
}, | ||
"install-path": "../vk/strings" | ||
} | ||
], | ||
"dev": true, | ||
"dev-package-names": [] | ||
} |
25 changes: 17 additions & 8 deletions
25
tests/phpt/modulite/012_package_not_required_in_derived_class/vendor/composer/installed.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,32 @@ | ||
<?php return array( | ||
'root' => array( | ||
'name' => 'vk/str-strings', | ||
'pretty_version' => '1.0.0+no-version-set', | ||
'version' => '1.0.0.0', | ||
'reference' => NULL, | ||
'name' => 'phpt/012', | ||
'pretty_version' => 'dev-master', | ||
'version' => 'dev-master', | ||
'reference' => '5f618dbe608b5011faf88660826d6e7212816d43', | ||
'type' => 'library', | ||
'install_path' => __DIR__ . '/../../', | ||
'aliases' => array(), | ||
'dev' => true, | ||
), | ||
'versions' => array( | ||
'vk/str-strings' => array( | ||
'pretty_version' => '1.0.0+no-version-set', | ||
'version' => '1.0.0.0', | ||
'reference' => NULL, | ||
'phpt/012' => array( | ||
'pretty_version' => 'dev-master', | ||
'version' => 'dev-master', | ||
'reference' => '5f618dbe608b5011faf88660826d6e7212816d43', | ||
'type' => 'library', | ||
'install_path' => __DIR__ . '/../../', | ||
'aliases' => array(), | ||
'dev_requirement' => false, | ||
), | ||
'vk/strings' => array( | ||
'pretty_version' => '0.0.1', | ||
'version' => '0.0.1.0', | ||
'reference' => '0bbbd1fe63f5142d8c529bb2d8d6651418afe292', | ||
'type' => 'library', | ||
'install_path' => __DIR__ . '/../vk/strings', | ||
'aliases' => array(), | ||
'dev_requirement' => false, | ||
), | ||
), | ||
); |
1 change: 1 addition & 0 deletions
1
tests/phpt/modulite/012_package_not_required_in_derived_class/vendor/vk/strings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../packages/vk-strings/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
...phpt/modulite/013_inheritance_calling_class_inside_parent/Archosauria013/AppendStr013.php
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...pt/modulite/013_inheritance_calling_class_inside_parent/Archosauria013/Thecodontia013.php
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.