<commit_before><?php
namespace WFV\Builder;

use WFV\Builder\Director;
use WFV\Builder\FormBuilder;
use WFV\Component\Guard;
use WFV\Component\Form;

class DirectorTest extends \PHPUnit_Framework_TestCase {

	/**
	 * Instance of WFV\Builder\Director.
	 *
	 * @access protected
	 * @var WFV\Builder\Director $director
	 */
	protected static $director;

	/**
	 * Instantiate Director
	 *
	 */
	protected function setUp() {
		self::$director = new Director();
	}

	/**
	 * Reset
	 *
	 */
	protected function tearDown() {
		self::$director = null;
	}

	/**
	 * Does describe method return an instance of this director?
	 *
	 */
	public function testDirectorDescribeReturnSelfInstance() {
		$result = self::$director
			->describe( 'phpunit', 'tested' );

		$this->assertInstanceOf( 'WFV\Builder\Director', $result );
	}

	/**
	 * Does with method return an instance of this director?
	 *
	 */
	public function testDirectorWithReturnSelfInstance() {
		$result = self::$director
			->with( 'phpunit', array('lorem', 'ipsum') );

		$this->assertInstanceOf( 'WFV\Builder\Director', $result );
	}

	/**
	 * When using FormBuilder, does compose return an instance of Form?
	 *
	 */
	public function testDirectorComposeReturnInstanceOfForm() {
		$builder = new FormBuilder();

		$result = self::$director
			->describe( 'action', 'phpunit' )
			->compose( $builder );

		$this->assertInstanceOf( 'WFV\Component\Form', $result );
	}

	/**
	 * When using GuardBuilder, does compose return an instance of Guard?
	 *
	 */
	public function testDirectorComposeReturnInstanceOfGuard() {
		$builder = new GuardBuilder();
		$result = self::$director
			->describe( 'action', 'phpunit' )
			->compose( $builder );
		$this->assertInstanceOf( 'WFV\Component\Guard', $result );
	}
}<commit_msg>DirectorTest - formatting<commit_after><?php
namespace WFV\Builder;

use WFV\Builder\Director;
use WFV\Builder\FormBuilder;
use WFV\Component\Guard;
use WFV\Component\Form;

class DirectorTest extends \PHPUnit_Framework_TestCase {

	/**
	 * Instance of WFV\Builder\Director.
	 *
	 * @access protected
	 * @var WFV\Builder\Director $director
	 */
	protected static $director;

	/**
	 * Instantiate Director
	 *
	 */
	protected function setUp() {
		self::$director = new Director();
	}

	/**
	 * Reset
	 *
	 */
	protected function tearDown() {
		self::$director = null;
	}

	/**
	 * Does describe method return an instance of this director?
	 *
	 */
	public function testDirectorDescribeReturnSelfInstance() {
		$result = self::$director
			->describe( 'phpunit', 'tested' );
		$this->assertInstanceOf( 'WFV\Builder\Director', $result );
	}

	/**
	 * Does with method return an instance of this director?
	 *
	 */
	public function testDirectorWithReturnSelfInstance() {
		$result = self::$director
			->with( 'phpunit', array('lorem', 'ipsum') );
		$this->assertInstanceOf( 'WFV\Builder\Director', $result );
	}

	/**
	 * When using FormBuilder, does compose return an instance of Form?
	 *
	 */
	public function testDirectorComposeReturnInstanceOfForm() {
		$builder = new FormBuilder();
		$result = self::$director
			->describe( 'action', 'phpunit' )
			->compose( $builder );

		$this->assertInstanceOf( 'WFV\Component\Form', $result );
	}

	/**
	 * When using GuardBuilder, does compose return an instance of Guard?
	 *
	 */
	public function testDirectorComposeReturnInstanceOfGuard() {
		$builder = new GuardBuilder();
		$result = self::$director
			->describe( 'action', 'phpunit' )
			->compose( $builder );
		$this->assertInstanceOf( 'WFV\Component\Guard', $result );
	}
}
{'fraction_non_alphanumeric': 0.14567483798253028, 'fraction_numerical': 0.0, 'mean_word_length': 3.896551724137931, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1865262', 'n_tokens_mistral': 1231, 'n_tokens_neox': 1070, 'n_words': 267}