for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SES\Tests;
use SES\SignupFieldsParserFunction;
/**
* @covers \SES\SignupFieldsParserFunction
*
* @group semantic-signup
* @license GNU GPL v2+
* @since 1.0
* @author mwjames
*/
class SignupFieldsParserFunctionTest extends \PHPUnit_Framework_TestCase {
public function testCanConstruct() {
$userFieldsCreateTemplate = $this->getMockBuilder( '\SES\UserFieldsCreateTemplate' )
->disableOriginalConstructor()
->getMock();
$this->assertInstanceOf(
'\SES\SignupFieldsParserFunction',
new SignupFieldsParserFunction( $userFieldsCreateTemplate )
);
}
public function testExecute() {
$instance = new SignupFieldsParserFunction( $userFieldsCreateTemplate );
$this->assertInternalType(
'array',
$instance->parse( array() )