├── tests ├── report │ └── .gitignore ├── tmp │ └── .gitignore ├── cases │ ├── Rendering │ │ ├── NetteDebug_get_Test.php │ │ ├── NetteDebug_call_Test.php │ │ ├── NetteDebug_construct_Test.php │ │ ├── NetteDebug_set_Test.php │ │ ├── NetteDebug_singleton_Test.php │ │ ├── NetteDebug_isset_Test.php │ │ ├── ResultPrinter_getTestInfo_Test.php │ │ └── ResultPrinter_renderInfo_Test.php │ ├── Config │ │ ├── Config_Information_Test.php │ │ └── Config_Configuration_addArgument_Test.php │ ├── Main │ │ ├── Main_coverage_Test.php │ │ └── Main_arg_Test.php │ └── Loaders │ │ ├── Loaders_AutoLoader_Test.php │ │ └── Loaders_IncludePathLoader_Test.php ├── boot.php ├── run.php └── TestCase.php ├── HttpPHPUnit ├── assets │ ├── .htaccess │ ├── images │ │ ├── editor.png │ │ ├── favicon.ico │ │ ├── ajax-loader.gif │ │ ├── favicon-ok.ico │ │ ├── favicon-failure.ico │ │ ├── favicon-unknown.ico │ │ └── favicon-waiting.ico │ ├── plugins │ │ └── jQuery.TreeView │ │ │ └── images │ │ │ ├── file.gif │ │ │ ├── minus.gif │ │ │ ├── plus.gif │ │ │ ├── folder.gif │ │ │ ├── ajax-loader.gif │ │ │ ├── folder-closed.gif │ │ │ ├── treeview-gray.gif │ │ │ ├── treeview-red.gif │ │ │ ├── treeview-black.gif │ │ │ ├── treeview-default.gif │ │ │ ├── treeview-famfamfam.gif │ │ │ ├── treeview-gray-line.gif │ │ │ ├── treeview-red-line.gif │ │ │ ├── treeview-black-line.gif │ │ │ ├── treeview-default-line.gif │ │ │ └── treeview-famfamfam-line.gif │ └── js │ │ ├── structure.js │ │ ├── listeners.js │ │ └── init.js ├── Loaders │ ├── IPHPUnitLoader.php │ └── AutoLoader.php ├── Modules │ └── IModule.php ├── init.php ├── Runner │ ├── Command.php │ ├── Runner.php │ └── Application.php ├── Rendering │ ├── ResultPrinterTestCaseHelper.php │ ├── OpenInEditor.php │ ├── TemplateFactory.php │ ├── StructureRenderer.latte │ ├── layout.latte │ └── NetteDebug.php ├── Events │ ├── AutowiringException.php │ ├── AutowiringFinder.php │ └── ModuleEvents.php └── Config │ └── Information.php ├── libs ├── PHPUnit │ ├── PHP │ │ └── CodeCoverage │ │ │ └── Report │ │ │ └── HTML │ │ │ └── Template │ │ │ ├── file.png │ │ │ ├── snow.png │ │ │ ├── butter.png │ │ │ ├── glass.png │ │ │ ├── chameleon.png │ │ │ ├── close12_1.gif │ │ │ ├── directory.png │ │ │ ├── scarlet_red.png │ │ │ ├── excanvas.compressed.js │ │ │ ├── yui_item.js │ │ │ ├── method_item.html.dist │ │ │ ├── directory_item.html.dist │ │ │ └── file_item.html.dist │ └── PHPUnit │ │ ├── Util │ │ └── Skeleton │ │ │ └── Template │ │ │ ├── Class.tpl.dist │ │ │ ├── TestMethodException.tpl.dist │ │ │ ├── TestMethodExceptionStatic.tpl.dist │ │ │ ├── TestMethodBool.tpl.dist │ │ │ ├── Method.tpl.dist │ │ │ ├── TestMethodBoolStatic.tpl.dist │ │ │ ├── TestMethod.tpl.dist │ │ │ ├── TestMethodStatic.tpl.dist │ │ │ ├── IncompleteTestMethod.tpl.dist │ │ │ └── TestClass.tpl.dist │ │ ├── Extensions │ │ └── Story │ │ │ └── ResultPrinter │ │ │ └── Template │ │ │ ├── scenario_header.html.dist │ │ │ ├── step.html.dist │ │ │ ├── scenario.html.dist │ │ │ └── scenarios.html.dist │ │ ├── Framework │ │ ├── Process │ │ │ └── TestCaseMethod.tpl.dist │ │ └── Assert │ │ │ └── Functions.php.in │ │ └── Framework.php ├── dump.php └── Nette │ ├── Security │ ├── AuthenticationException.php │ ├── Diagnostics │ │ ├── templates │ │ │ ├── UserPanel.panel.phtml │ │ │ └── UserPanel.tab.phtml │ │ └── UserPanel.php │ ├── IRole.php │ ├── IResource.php │ ├── IIdentity.php │ ├── IAuthorizator.php │ ├── IAuthenticator.php │ ├── SimpleAuthenticator.php │ └── IUserStorage.php │ ├── Application │ ├── UI │ │ ├── InvalidLinkException.php │ │ ├── BadSignalException.php │ │ ├── ISignalReceiver.php │ │ ├── IRenderable.php │ │ ├── IStatePersistent.php │ │ └── Multiplier.php │ ├── IPresenter.php │ ├── IResponse.php │ ├── IPresenterFactory.php │ ├── IRouter.php │ ├── Responses │ │ ├── ForwardResponse.php │ │ ├── TextResponse.php │ │ ├── RedirectResponse.php │ │ └── JsonResponse.php │ ├── Diagnostics │ │ └── templates │ │ │ └── RoutingPanel.tab.phtml │ ├── exceptions.php │ └── templates │ │ └── error.phtml │ ├── Reflection │ ├── IAnnotation.php │ ├── Annotation.php │ └── Extension.php │ ├── Diagnostics │ ├── shortcuts.php │ ├── templates │ │ ├── error.phtml │ │ ├── bar.errors.panel.phtml │ │ ├── bar.dumps.tab.phtml │ │ ├── bar.memory.tab.phtml │ │ ├── bar.errors.tab.phtml │ │ ├── bar.dumps.panel.phtml │ │ └── bar.time.tab.phtml │ ├── IBarPanel.php │ ├── DefaultBarPanel.php │ └── Bar.php │ ├── Mail │ ├── IMailer.php │ └── SendmailMailer.php │ ├── Templating │ ├── ITemplate.php │ ├── IFileTemplate.php │ └── FilterException.php │ ├── Latte │ ├── exceptions.php │ ├── HtmlNode.php │ ├── IMacro.php │ ├── Token.php │ ├── Engine.php │ ├── MacroTokenizer.php │ └── MacroNode.php │ ├── DI │ ├── exceptions.php │ ├── Diagnostics │ │ └── templates │ │ │ └── ContainerPanel.tab.phtml │ ├── Statement.php │ ├── IContainer.php │ └── NestedAccessor.php │ ├── Forms │ ├── IFormRenderer.php │ ├── ISubmitterControl.php │ ├── Rule.php │ ├── Controls │ │ ├── Button.php │ │ ├── TextArea.php │ │ ├── Checkbox.php │ │ ├── ImageButton.php │ │ └── HiddenField.php │ └── IControl.php │ ├── Utils │ ├── PhpGenerator │ │ ├── PhpLiteral.php │ │ ├── Parameter.php │ │ └── Property.php │ ├── LimitedScope.php │ └── MimeTypeDetector.php │ ├── Localization │ └── ITranslator.php │ ├── common │ ├── IFreezable.php │ ├── Framework.php │ ├── FreezableObject.php │ └── DateTime.php │ ├── Http │ ├── ISessionStorage.php │ └── UrlScript.php │ ├── Config │ ├── IAdapter.php │ ├── Extensions │ │ ├── ConstantsExtension.php │ │ └── PhpExtension.php │ ├── Adapters │ │ └── PhpAdapter.php │ └── Helpers.php │ ├── Database │ ├── SqlLiteral.php │ ├── Row.php │ ├── Drivers │ │ └── Sqlite2Driver.php │ ├── IReflection.php │ └── Reflection │ │ └── ConventionalReflection.php │ ├── Iterators │ ├── Filter.php │ ├── Mapper.php │ ├── InstanceFilter.php │ ├── Recursor.php │ └── RecursiveFilter.php │ ├── Caching │ ├── Storages │ │ ├── IJournal.php │ │ ├── PhpFileStorage.php │ │ ├── DevNullStorage.php │ │ └── MemoryStorage.php │ ├── OutputHelper.php │ └── IStorage.php │ ├── ComponentModel │ ├── IComponent.php │ ├── RecursiveComponentIterator.php │ └── IContainer.php │ ├── loader.php │ └── Loaders │ └── AutoLoader.php └── composer.json /tests/report/.gitignore: -------------------------------------------------------------------------------- 1 | /* 2 | !/.gitignore -------------------------------------------------------------------------------- /tests/tmp/.gitignore: -------------------------------------------------------------------------------- 1 | /* 2 | !/.gitignore -------------------------------------------------------------------------------- /HttpPHPUnit/assets/.htaccess: -------------------------------------------------------------------------------- 1 | Order Allow,Deny 2 | Allow from all 3 | -------------------------------------------------------------------------------- /HttpPHPUnit/assets/images/editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Clevis/HttpPHPUnit/HEAD/HttpPHPUnit/assets/images/editor.png -------------------------------------------------------------------------------- /HttpPHPUnit/assets/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Clevis/HttpPHPUnit/HEAD/HttpPHPUnit/assets/images/favicon.ico -------------------------------------------------------------------------------- /HttpPHPUnit/assets/images/ajax-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Clevis/HttpPHPUnit/HEAD/HttpPHPUnit/assets/images/ajax-loader.gif -------------------------------------------------------------------------------- /HttpPHPUnit/assets/images/favicon-ok.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Clevis/HttpPHPUnit/HEAD/HttpPHPUnit/assets/images/favicon-ok.ico -------------------------------------------------------------------------------- /HttpPHPUnit/assets/images/favicon-failure.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Clevis/HttpPHPUnit/HEAD/HttpPHPUnit/assets/images/favicon-failure.ico -------------------------------------------------------------------------------- /HttpPHPUnit/assets/images/favicon-unknown.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Clevis/HttpPHPUnit/HEAD/HttpPHPUnit/assets/images/favicon-unknown.ico -------------------------------------------------------------------------------- /HttpPHPUnit/assets/images/favicon-waiting.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Clevis/HttpPHPUnit/HEAD/HttpPHPUnit/assets/images/favicon-waiting.ico -------------------------------------------------------------------------------- /HttpPHPUnit/assets/plugins/jQuery.TreeView/images/file.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Clevis/HttpPHPUnit/HEAD/HttpPHPUnit/assets/plugins/jQuery.TreeView/images/file.gif -------------------------------------------------------------------------------- /HttpPHPUnit/assets/plugins/jQuery.TreeView/images/minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Clevis/HttpPHPUnit/HEAD/HttpPHPUnit/assets/plugins/jQuery.TreeView/images/minus.gif -------------------------------------------------------------------------------- /HttpPHPUnit/assets/plugins/jQuery.TreeView/images/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Clevis/HttpPHPUnit/HEAD/HttpPHPUnit/assets/plugins/jQuery.TreeView/images/plus.gif -------------------------------------------------------------------------------- /libs/PHPUnit/PHP/CodeCoverage/Report/HTML/Template/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Clevis/HttpPHPUnit/HEAD/libs/PHPUnit/PHP/CodeCoverage/Report/HTML/Template/file.png -------------------------------------------------------------------------------- /libs/PHPUnit/PHP/CodeCoverage/Report/HTML/Template/snow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Clevis/HttpPHPUnit/HEAD/libs/PHPUnit/PHP/CodeCoverage/Report/HTML/Template/snow.png -------------------------------------------------------------------------------- /HttpPHPUnit/assets/plugins/jQuery.TreeView/images/folder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Clevis/HttpPHPUnit/HEAD/HttpPHPUnit/assets/plugins/jQuery.TreeView/images/folder.gif -------------------------------------------------------------------------------- /libs/PHPUnit/PHP/CodeCoverage/Report/HTML/Template/butter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Clevis/HttpPHPUnit/HEAD/libs/PHPUnit/PHP/CodeCoverage/Report/HTML/Template/butter.png -------------------------------------------------------------------------------- /libs/PHPUnit/PHP/CodeCoverage/Report/HTML/Template/glass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Clevis/HttpPHPUnit/HEAD/libs/PHPUnit/PHP/CodeCoverage/Report/HTML/Template/glass.png -------------------------------------------------------------------------------- /libs/PHPUnit/PHPUnit/Util/Skeleton/Template/Class.tpl.dist: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /libs/PHPUnit/PHP/CodeCoverage/Report/HTML/Template/chameleon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Clevis/HttpPHPUnit/HEAD/libs/PHPUnit/PHP/CodeCoverage/Report/HTML/Template/chameleon.png -------------------------------------------------------------------------------- /libs/PHPUnit/PHP/CodeCoverage/Report/HTML/Template/close12_1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Clevis/HttpPHPUnit/HEAD/libs/PHPUnit/PHP/CodeCoverage/Report/HTML/Template/close12_1.gif -------------------------------------------------------------------------------- /libs/PHPUnit/PHP/CodeCoverage/Report/HTML/Template/directory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Clevis/HttpPHPUnit/HEAD/libs/PHPUnit/PHP/CodeCoverage/Report/HTML/Template/directory.png -------------------------------------------------------------------------------- /libs/PHPUnit/PHPUnit/Extensions/Story/ResultPrinter/Template/scenario_header.html.dist: -------------------------------------------------------------------------------- 1 |
{name}
4 |[+] {name}
4 |\"xxx\" (3)\n\n", $d->dump('xxx', true));
12 | }
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/tests/cases/Rendering/NetteDebug_construct_Test.php:
--------------------------------------------------------------------------------
1 | assertTrue(class_exists('Nette\Diagnostics\Debugger'));
12 | $this->assertAttributeSame('Nette\Diagnostics\Debugger', 'class', $d);
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/libs/dump.php:
--------------------------------------------------------------------------------
1 | 1) $var = func_get_args();
9 | Debugger::dump($var);
10 | return func_get_arg(0);
11 | }
12 |
13 | /** Bar dump */
14 | function dd($var)
15 | {
16 | if (func_num_args() > 1) $var = func_get_args();
17 | else if (is_array($var)) $var = array(NULL => $var);
18 | Debugger::barDump($var);
19 | return func_get_arg(0);
20 | }
21 |
--------------------------------------------------------------------------------
/tests/cases/Rendering/NetteDebug_set_Test.php:
--------------------------------------------------------------------------------
1 | editor;
12 | $d->editor = 'xxx';
13 | $this->assertSame('xxx', $d->editor);
14 | $d->editor = $tmp;
15 | $this->assertSame('editor://open/?file=%file&line=%line', $d->editor);
16 | }
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/tests/boot.php:
--------------------------------------------------------------------------------
1 | enableDebugger();
8 | $configurator->setTempDirectory( __DIR__ . '/tmp');
9 | $configurator->createRobotLoader()
10 | ->addDirectory(__DIR__ . '/../libs')
11 | ->addDirectory(__DIR__ . '/cases')
12 | ->register()
13 | ;
14 |
15 | require_once __DIR__ . '/TestCase.php';
16 |
17 | define('LIBS_DIR', __DIR__ . '/../libs');
18 |
--------------------------------------------------------------------------------
/tests/run.php:
--------------------------------------------------------------------------------
1 | coverage(__DIR__ . '/../HttpPHPUnit', __DIR__ . '/report', function (PHP_CodeCoverage $coverage) {
12 | $coverage->filter()->removeDirectoryFromWhitelist(__DIR__ . '/../HttpPHPUnit/Nette');
13 | });
14 |
15 | $http->run(__DIR__ . '/cases');
16 |
--------------------------------------------------------------------------------
/tests/cases/Rendering/NetteDebug_singleton_Test.php:
--------------------------------------------------------------------------------
1 | assertInstanceOf('HttpPHPUnit\Rendering\NetteDebug', $d);
12 | }
13 |
14 | public function testSingleton()
15 | {
16 | $d1 = HttpPHPUnit\Rendering\NetteDebug::get();
17 | $d2 = HttpPHPUnit\Rendering\NetteDebug::get();
18 | $this->assertSame($d1, $d2);
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/libs/Nette/Security/AuthenticationException.php:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 | no identity
15 |We're sorry! The server encountered an internal error and was unable to complete your request. Please try again later.
20 | 21 |error 500
22 | -------------------------------------------------------------------------------- /libs/Nette/Localization/ITranslator.php: -------------------------------------------------------------------------------- 1 | ul'); 3 | $('> ul', opened.closest('li, #structure')).show(); 4 | opened.parents('ul').show(); 5 | structure.find('.node').disableTextSelect(); // zabrání označení položky při dvojkliku 6 | structure.treeview(); 7 | $('img.structure-placeholder', structure).hide(); 8 | 9 | $('#structure .node a.name').click(function (e) { 10 | if (!e.button && !e.shiftKey) { 11 | $(this).closest('li').find('> .hitarea').trigger('click'); 12 | e.preventDefault(); 13 | } 14 | }); 15 | 16 | $('#structure .node a.name').dblclick(function (e) { 17 | location.href = this.href; 18 | var t = $(this); 19 | if ($('> ul', t.closest('li')).is(':hidden')) 20 | { 21 | t.click(); 22 | } 23 | }); 24 | -------------------------------------------------------------------------------- /tests/cases/Config/Config_Information_Test.php: -------------------------------------------------------------------------------- 1 | setRunned($runned); 16 | $c->setFilter($filter); 17 | $i = new HttpPHPUnit\Config\Information($c); 18 | $this->assertSame($result, $i->isRunnedAllTest()); 19 | } 20 | 21 | public function dataProviderIsRunnedAllTest() 22 | { 23 | return array( 24 | array(false, NULL, false), 25 | array(false, 'x', false), 26 | array(true, NULL, true), 27 | array(true, 'x', false), 28 | ); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /libs/Nette/Diagnostics/IBarPanel.php: -------------------------------------------------------------------------------- 1 | editor)) 19 | { 20 | self::$editor = NetteDebug::get()->editor; 21 | } 22 | } 23 | 24 | /** 25 | * @param string 26 | * @param int 27 | * @return string|NULL 28 | */ 29 | public function link($file, $line) 30 | { 31 | if (self::$editor AND is_file($file)) 32 | { 33 | return strtr(self::$editor, array('%file' => rawurlencode($file), '%line' => (int) $line)); 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /libs/Nette/Diagnostics/templates/bar.errors.panel.phtml: -------------------------------------------------------------------------------- 1 | 14 || 22 | | 23 | |
| 31 | | 32 | |
|---|
13 |
14 |
30 |
31 |
33 | Use shift + click to open a file in editor.
34 | Use double click to run a specific folder or file.
35 |
32 |
36 |
37 |
38 | error
33 | -------------------------------------------------------------------------------- /libs/Nette/Security/Diagnostics/templates/UserPanel.tab.phtml: -------------------------------------------------------------------------------- 1 | 8 | user->isLoggedIn()): ?> 9 ||
35 | [+] Summary: 36 | 56 | |
57 |