Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Tester fails on AssertException.php dos not exists #7

Closed
milo opened this issue Jul 24, 2015 · 5 comments
Closed

Running Tester fails on AssertException.php dos not exists #7

milo opened this issue Jul 24, 2015 · 5 comments

Comments

@milo
Copy link
Member

milo commented Jul 24, 2015

After installation procedure and chmod described in #6, running Tester fails:

$ vendor/bin/tester
PHP Warning:  require(/var/www/test1/vendor/nette/tester/src/Framework/AssertException.php): failed to open stream: No such file or directory in /var/www/test1/vendor/nette/tester/src/tester.php on line 24
PHP Stack trace:
PHP   1. {main}() /var/www/test1/vendor/nette/tester/src/tester:0
PHP   2. require() /var/www/test1/vendor/nette/tester/src/tester:4
PHP Fatal error:  require(): Failed opening required '/var/www/test1/vendor/nette/tester/src/Framework/AssertException.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/test1/vendor/nette/tester/src/tester.php on line 24
PHP Stack trace:
PHP   1. {main}() /var/www/test1/vendor/nette/tester/src/tester:0
PHP   2. require() /var/www/test1/vendor/nette/tester/src/tester:4
$ composer show -i 
name     : nette/tester
versions : * v1.5.0

I don't understand, which source code of Tester is this?

$ cd vendor/nette/tester/
$ ls -lsa
8 drwxr-x---+  3 milo milo 4096 čec 21 00:40 .
8 drwxr-x---+ 20 milo milo 4096 čec 21 00:40 ..
                      <<< directory Tester is Missing, it is in 1.5.0
8 drwxr-x---+  5 milo milo 4096 čec 21 00:40 src
8 -rw-r-----+  1 milo milo  560 čec 21 00:40 composer.json
8 -rw-r-----+  1 milo milo 1982 čec 21 00:40 license.md

$ cd src/Framework/
$ ls -lsa
 8 drwxr-x---+ 2 milo milo  4096 čec 21 00:40 .
 8 drwxr-x---+ 5 milo milo  4096 čec 21 00:40 ..
20 -rw-r-----+ 1 milo milo 14664 čec 21 00:40 Assert.php
                       <<< AssertException.php is really missing
 8 -rw-r-----+ 1 milo milo  2238 čec 21 00:40 DataProvider.php
 8 -rw-r-----+ 1 milo milo  3566 čec 21 00:40 DomQuery.php
16 -rw-r-----+ 1 milo milo 10604 čec 21 00:40 Dumper.php
12 -rw-r-----+ 1 milo milo  4876 čec 21 00:40 Environment.php
 8 -rw-r-----+ 1 milo milo  2223 čec 21 00:40 FileMock.php
 8 -rw-r-----+ 1 milo milo  1807 čec 21 00:40 Helpers.php
12 -rw-r-----+ 1 milo milo  4335 čec 21 00:40 TestCase.php
@milo
Copy link
Member Author

milo commented Jul 24, 2015

One more note, there is a warning during the web-project installation:

$ composer create-project nette/web-project test1
Installing nette/web-project (v1.4)
  - Installing nette/web-project (v1.4)
    Loading from cache

Created project in test1
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Nothing to install or update
Generating autoload files

@JanTvrdik
Copy link

It installs https://github.com/nette/web-project/tree/08e8325b4c796a58897374617537e423dfb57fe3 where the AssertException file is missing. Just reinstall the dependencies and push it with 1.4.1 tag.

@xpavp03
Copy link

xpavp03 commented Aug 6, 2015

There's more that is missing:
vendor/nette/mail/src/Mail/exceptions.php
vendor/nette/application/src/Bridges/ApplicationLatte/UIRuntime.php
vendor/nette/tester/src/Framework/AssertException.php
and a whole bunch of not-so-important files like readme.md a contributing.md, examples etc.
(http://forum.nette.org/cs/23885-class-nette-mail-sendexception-not-found#p160808)

@JanTvrdik: I didn't understand your recommendation. I know that I can remove vendor and run composer update to get the missing files but the real solution is to fix the pool of files for web-project. Would you happen to know whom to contact to get it done?

@JanTvrdik
Copy link

@xpavp03 I wrote instructions for @dg or @milo. Sorry for not making it clearer.

@milo
Copy link
Member Author

milo commented Jul 20, 2018

Resolved by time :)

@milo milo closed this as completed Jul 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants