for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
require_once 'Intraface/modules/contact/ContactReminder.php';
require_once 'ContactStubs.php';
class ContactReminderTest extends PHPUnit_Framework_TestCase
{
private $kernel;
$kernel
This check marks private properties in classes that are never used. Those properties can be removed.
function setUp()
}
function getContact()
$kernel = new FakeContactKernel;
$kernel->intranet = new FakeContactIntranet;
return new FakeContactContact($kernel);
function testConstruction()
$reminder = new ContactReminder($this->getContact());
$this->assertTrue(is_object($reminder));
function testPostPhoneUntil()
$this->assertTrue($reminder->postponeUntil(date('Y-') . date('m') + 1 . date('-d')));
This check marks private properties in classes that are never used. Those properties can be removed.