mageekguy/atoum — Issue #31: Fatal error on test::tearDown() call
Author: eexit
Created: 2011-11-02 13:38:42+00:00
State: open

Hi,

I got an issue with test::tearDown() method... It works very well but test.php seems to want to call a closure which doesn't exists on line 707.
Please, take a look at the console output below:

```
php units/Smak/Portfolio/Set.php -ncc
> atoum version nightly-822-201111021358 by Frédéric Hardy (phar:///.../net/eexit/Smak/tests/lib/atoum.phar)
> PHP path: /opt/local/bin/php
> PHP version:
=> PHP 5.3.8 (cli) (built: Oct 22 2011 22:30:22)
=> Copyright (c) 1997-2011 The PHP Group
=> Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
=> with Xdebug v2.1.1, Copyright (c) 2002-2011, by Derick Rethans
> Smak\Portfolio\tests\units\Set...
[SSSSSSS_____________________________________________________][7/7]
Fatal error: Call to a member function callObservers() on a non-object in phar:///.../net/eexit/Smak/tests/lib/atoum.phar/classes/test.php on line 707

Call Stack:
0.0233 2865536 1. mageekguy\atoum\scripts\{closure}() phar:///.../net/eexit/Smak/tests/lib/atoum.phar/classes/scripts/runner.php:0
0.0233 2865536 2. mageekguy\atoum\scripts\runner->run(???) phar:///.../net/eexit/Smak/tests/lib/atoum.phar/classes/scripts/runner.php:263
0.0381 4278960 3. mageekguy\atoum\runner->run(array(0), array(0), array(0), array(0), ???) phar:///.../net/eexit/Smak/tests/lib/atoum.phar/classes/scripts/runner.php:105
0.0815 4608736 4. mageekguy\atoum\test->run(array(7), ???) phar:///.../net/eexit/Smak/tests/lib/atoum.phar/classes/runner.php:385

zsh: exit 255 php units/Smak/Portfolio/Set.php -ncc
```