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

Atoum under Windows #90

Closed
Blackhol3 opened this issue Jun 26, 2012 · 6 comments
Closed

Atoum under Windows #90

Blackhol3 opened this issue Jun 26, 2012 · 6 comments

Comments

@Blackhol3
Copy link

In order to complete #84 under Windows, here are some additional tests :

PHP 5.3.8

PHP 5.3.8 (cli) (built: Sep 16 2011 21:28:32)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

Failure (141 tests, 1026/1026 methods, 1 failure, 0 error, 0 exception) !
There is 1 failure:
=> mageekguy\atoum\tests\units\mock\stream::testGetSubStream():
In file phar://XXX/tests/units/classes/mock/stream.php on line 80, mageekguy\atoum\asserters\castToString::match() failed: string(35) 'atoum://4fe9b76d7485d\4fe9b76d74fd2' does not match #^atoum://4fe9b76d7485d[^]+$#

PHP 5.3.6

PHP 5.3.6 (cli) (built: Mar 17 2011 10:48:37)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

Failure (141 tests, 1025/1026 methods, 1 failure, 0 error, 0 exception) !
There is 1 failure:
=> mageekguy\atoum\tests\units\mock\stream::testGetSubStream():
In file phar://XXX/tests/units/classes/mock/stream.php on line 80, mageekguy\atoum\asserters\castToString::match() failed: string(35) 'atoum://4fe9c84dba468\4fe9c84dba6f3' does not match #^atoum://4fe9c84dba468[^]+$#
There is 1 uncompleted method:
=> mageekguy\atoum\tests\units\mock\generator::testGenerate() with exit code -1073741819:
==> output(0) ""

@jubianchi
Copy link
Member

@Blackhol3 : the E_WARNING you get on PHP 5.3.6 (and also, the exceptions) are caused by a missing configuration : you should set the date.timezone directive in your php.ini (http://php.net/date.timezone)

The only failure here is :

=> mageekguy\atoum\tests\units\mock\stream::testGetSubStream():
In file phar://XXX/tests/units/classes/mock/stream.php on line 80, mageekguy\atoum\asserters\castToString::match() failed: string(35) 'atoum://4fe9b8e445a60\4fe9b8e445cb9' does not match #^atoum://4fe9b8e445a60[^]+$#

@Blackhol3
Copy link
Author

You're right, what a fool I am... Thanks, I've just corrected that.

While previous errors results from php atoum.phar --testIt, here is a strange response when I use --loop :

'C:\Program' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
Press to reexecute, press any other key and to stop...

Notice that PHP is in a subfolder of C:\Program Files\

@mageekguy
Copy link
Contributor

Think that there is a missing call to escapeshellargs() somewhere...

@mageekguy
Copy link
Contributor

Any feedback about 7fe89b2 ?

@Blackhol3
Copy link
Author

Nice work, everything OK. I've just some troubles with PHP 5.3.6 (see below), but that's probably a misconfiguration on my part, since I can't reproduce this errors on the other versions. Of course, there is always this problem with --loop mode.

PHP 5.3.6 (cli) (built: Mar 17 2011 10:48:37)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

Failure (141 tests, 1025/1026 methods, 0 failure, 1 error, 0 exception) !
There is 1 error:
=> mageekguy\atoum\tests\units\asserters\variable::testIsIdenticalTo():
==> Error UNKNOWN in phar://XXX/tests/units/classes/asserters/variable.php on unknown line, generated by unknown file:
zend_mm_heap corrupted
There is 1 uncompleted method:
=> mageekguy\atoum\tests\units\mock\generator::testGenerate() with exit code -1073741819:
==> output(0) ""


PHP 5.3.3 (cli) (built: Jul 21 2010 20:36:55)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

Success (143 tests, 1032/1032 methods, 16584 assertions, 0 error, 0 exception) !


PHP 5.3.2 (cli) (built: Mar 3 2010 20:47:01)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

mageekguy\atoum\tests\units\adapter...
[..__________________________________________________________][0/2]Error: Test engine 'concurrent' does not exist for method 'mageekguy\atoum\tests\units\adapter::test__construct()'

@mageekguy
Copy link
Contributor

Can you open a specific issue about --loop, please ?
And thanks for the feedback.

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