Skip to content

Commit

Permalink
Test case for #1509
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Nov 2, 2013
1 parent 38e7053 commit b7f69e9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ext/tests/issue-1509.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--TEST--
Assertion failure on unclean shutdown - https://github.com/phalcon/cphalcon/issues/1509
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php
$di = new \Phalcon\DI();
$di->set('url', function() { return new NonExistingClass; });
$di->get('url');
?>
--EXPECTF--
Fatal error: Class 'NonExistingClass' not found in %s on line %d

0 comments on commit b7f69e9

Please sign in to comment.