{"issue":{"milestone":{"open_issues":2,"title":"Phake 1.0.0alpha8","creator":{"id":176150,"login":"mlively","url":"https://api.github.com/users/mlively","gravatar_id":"a7af00cc6244660c56bf2c93ce275c6a","avatar_url":"https://secure.gravatar.com/avatar/a7af00cc6244660c56bf2c93ce275c6a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-06-26T21:28:11Z","state":"open","due_on":null,"closed_issues":3,"description":"","number":1,"url":"https://api.github.com/repos/mlively/Phake/milestones/1"},"title":"Tests in strict mode with only \"verify\" determined as incomplete","created_at":"2011-06-14T22:41:35Z","user":{"id":328648,"login":"aenglander","url":"https://api.github.com/users/aenglander","gravatar_id":"a08e4edf82e285a944e614b963ab6618","avatar_url":"https://secure.gravatar.com/avatar/a08e4edf82e285a944e614b963ab6618?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"updated_at":"2012-01-01T20:44:32Z","state":"closed","labels":[{"name":"Defect","color":"9c2b2b","url":"https://api.github.com/repos/mlively/Phake/labels/Defect"}],"id":1058033,"html_url":"https://github.com/mlively/Phake/issues/28","closed_at":"2012-01-01T20:44:32Z","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"When you have a unit test that only performs Phake::verify, PHPUnit will mark the test Incomplete saying there are no assertions.\r\n\r\nFile PhakeVerifyIncompleteTest.php:\r\n\r\n<?php\r\nrequire_once 'Phake.php';\r\nrequire_once 'PHPUnit/Autoload.php';\r\ninterface A {\r\n\tpublic function doIt($val);\r\n}\r\n\r\nclass B {\r\n\tpublic function doItOnA(A $a, $val) {\r\n\t\t$a->doIt($val);\r\n\t}\r\n}\r\n\r\nclass PhakeVerifyIncompleteTest extends PHPUnit_Framework_TestCase {\r\n\tfunction testJustVerify() {\r\n\t\t$a = Phake::mock('A');\r\n\t\t$b = new B();\r\n\t\t$b->doItOnA($a, 'indabut');\r\n\t\tPhake::verify($a)->doIt('indabut');\r\n\t}\r\n}\r\n\r\nPHPUnit command:\r\nphpunit --strict --verbose ./PhakeVerifyIncompleteTest.php\r\n\r\nPHPUnit response:\r\nPHPUnit 3.5.13 by Sebastian Bergmann.\r\n\r\nI\r\n\r\nTime: 0 seconds, Memory: 4.00Mb\r\n\r\nThere was 1 incomplete test:\r\n\r\n1) PhakeVerifyIncomplete::testJustVerify\r\nThis test did not perform any assertions\r\n\r\nOK, but incomplete or skipped tests!\r\nTests: 1, Assertions: 0, Incomplete: 1.\r\n","number":28,"url":"https://api.github.com/repos/mlively/Phake/issues/28","comments":2,"assignee":{"id":176150,"login":"mlively","url":"https://api.github.com/users/mlively","gravatar_id":"a7af00cc6244660c56bf2c93ce275c6a","avatar_url":"https://secure.gravatar.com/avatar/a7af00cc6244660c56bf2c93ce275c6a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"}},"comment":{"created_at":"2012-01-01T20:44:31Z","user":{"id":176150,"login":"mlively","url":"https://api.github.com/users/mlively","gravatar_id":"a7af00cc6244660c56bf2c93ce275c6a","avatar_url":"https://secure.gravatar.com/avatar/a7af00cc6244660c56bf2c93ce275c6a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"updated_at":"2012-01-01T20:44:31Z","id":3325914,"body":"Should be good now","url":"https://api.github.com/repos/mlively/Phake/issues/comments/3325914"},"action":"created"}