{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/aedf1b41ec8eab7598a3d472c91da314?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"aedf1b41ec8eab7598a3d472c91da314","url":"https://api.github.com/users/sebastianblum","login":"sebastianblum","id":551751},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-11-01T13:03:10Z","comments":3,"closed_at":null,"url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/390","body":"Hello!\r\n\r\nI'am using symfony 2.0.4 and the example was working with phpunit 3.5.15.\r\n\r\nSince the upgrade to phpunit 3.6 i get the following output:\r\n\r\n\r\nphpunit -c app\r\n#!/usr/local/Cellar/php/5.3.6/bin/php\r\nPHPUnit 3.6.0 by Sebastian Bergmann.\r\n\r\nConfiguration read from /Users/sebiprivat/Downloads/Symfony/app/phpunit.xml.dist\r\n\r\n.E\r\n\r\nTime: 1 second, Memory: 25.50Mb\r\n\r\nThere was 1 error:\r\n\r\n1) Acme\\DemoBundle\\Tests\\Controller\\DemoControllerTest::testInvalidName\r\nErrorException: Notice: ob_end_clean(): failed to delete buffer. No buffer to delete in /usr/local/Cellar/php/5.3.6/lib/php/PHPUnit/Framework/TestCase.php line 833\r\n\r\n/Users/sebiprivat/Downloads/Symfony/vendor/symfony/src/Symfony/Component/HttpKernel/Debug/ErrorHandler.php:65\r\n/usr/local/Cellar/php/5.3.6/bin/phpunit:46\r\n\r\nFAILURES!\r\nTests: 2, Assertions: 2, Errors: 1.\r\nMacPro:Symfony sebiprivat$ \r\n\r\n---------------------------------------------------------------------------------------------------------------------------------------\r\n\r\nSteps to reproduce the error:\r\n\r\n1. Download Symfony v2.0.4 with vendors\r\nhttp://symfony.com/download?v=Symfony_Standard_Vendors_2.0.4.tgz\r\n\r\n2. Go into the directory and run phpunit -c app \r\nThere should be one test in the Acme Demo Bundle\r\n\r\n3. Now I want to test, that symphony throws a NotFoundException (will display a 404 error page) if no name was given\r\n\r\nI edited in src/Acme/DemoBundle/Controller/DemoController.php to\r\n\r\npublic function helloAction($name)\r\n{\r\n\tif (!$name) {\r\n\t\tthrow new NotFoundHttpException(\"No Name!\");\r\n\t}\r\n\treturn array('name' => $name);\r\n}\r\n\r\nand added a new test in src/Acme/DemoBundle/Tests/Controller/DemoControllerTest.php\r\n\r\n public function testInvalidName()\r\n {\r\n\t$client = $this->createClient();\r\n\t$crawler = $client->request('GET', '/demo/hello/');\r\n\t$this->assertTrue($client->getResponse()->isNotFound());\r\n}\r\n\r\nNow running phpunit -c app will get the following output:\r\n\r\nphpunit -c app\r\n#!/usr/local/Cellar/php/5.3.6/bin/php\r\nPHPUnit 3.6.0 by Sebastian Bergmann.\r\n\r\nConfiguration read from /Users/sebiprivat/Downloads/Symfony/app/phpunit.xml.dist\r\n\r\n.E\r\n\r\nTime: 1 second, Memory: 25.50Mb\r\n\r\nThere was 1 error:\r\n\r\n1) Acme\\DemoBundle\\Tests\\Controller\\DemoControllerTest::testInvalidName\r\nErrorException: Notice: ob_end_clean(): failed to delete buffer. No buffer to delete in /usr/local/Cellar/php/5.3.6/lib/php/PHPUnit/Framework/TestCase.php line 833\r\n\r\n/Users/sebiprivat/Downloads/Symfony/vendor/symfony/src/Symfony/Component/HttpKernel/Debug/ErrorHandler.php:65\r\n/usr/local/Cellar/php/5.3.6/bin/phpunit:46\r\n\r\nFAILURES!\r\nTests: 2, Assertions: 2, Errors: 1.\r\nMacPro:Symfony sebiprivat$ \r\n\r\n","html_url":"https://github.com/sebastianbergmann/phpunit/issues/390","number":390,"title":"ErrorException: Notice: ob_end_clean(): failed to delete buffer.","id":2108995,"created_at":"2011-11-01T10:42:14Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/aedf1b41ec8eab7598a3d472c91da314?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"aedf1b41ec8eab7598a3d472c91da314","url":"https://api.github.com/users/sebastianblum","login":"sebastianblum","id":551751},"updated_at":"2011-11-01T13:03:10Z","url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/comments/2589941","body":"Yes, symfony and twig are using Output Buffering\r\n\r\nI don't know how symfony generates the 404 page from the NotFoundException.\r\nOn my other PC with phpunit 3.5 the example is still working.","id":2589941,"created_at":"2011-11-01T13:03:10Z"}}