for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class UserTest extends CommonTestClass
{
public function testSimple()
$data = $this->mockUser();
$this->assertEquals('[email protected]', $data->email);
$this->assertEquals('Bob', $data->name);
}
public function testOutputs()
$this->assertEquals('[email protected]', $data->getEmail());
$this->assertEquals('Bob', $data->getEmailName());
public function testSanitize()
$data->name = 'null';
$data->sanitize();
$this->assertEquals('null', $data->name);