<commit_before><?php
/**
 * Created by PhpStorm.
 * User: franae
 * Date: 21.08.14
 * Time: 23:51
 */

namespace PhileTest\Repository;


class PageTest extends \PHPUnit_Framework_TestCase {
	/**
	 * @var \Phile\Repository\Page
	 */
	protected $pageRepository = null;

	protected function setUp() {
		parent::setUp();
		$this->pageRepository = new \Phile\Repository\Page();
	}

	public function testPageCanBeFindByPath() {
		$page = $this->pageRepository->findByPath('/');
		$this->assertInstanceOf('\Phile\Page', $page);
	}
}
 <commit_msg>modify testPageCanBeFindByPath and add new test method<commit_after><?php
/**
 * Created by PhpStorm.
 * User: franae
 * Date: 21.08.14
 * Time: 23:51
 */

namespace PhileTest\Repository;


class PageTest extends \PHPUnit_Framework_TestCase {
	/**
	 * @var \Phile\Repository\Page
	 */
	protected $pageRepository = null;

	protected function setUp() {
		parent::setUp();
		$this->pageRepository = new \Phile\Repository\Page();
	}

	public function testPageCanBeFindByPath() {
		$page = $this->pageRepository->findByPath('/');
		$this->assertInstanceOf('\Phile\Model\Page', $page);
		$this->assertEquals('Welcome', $page->getTitle());
	}

	public function testCanFindAllPagesOrderdByTitle() {
		$this->markTestIncomplete('not implemented yet');
	}
}
{'fraction_non_alphanumeric': 0.15629860031104198, 'fraction_numerical': 0.015552099533437015, 'mean_word_length': 4.5, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '3851001', 'n_tokens_mistral': 458, 'n_tokens_neox': 425, 'n_words': 84}