<commit_before><?php

Bundle::start('orchestra');
Bundle::start('diskus');

class PresentersTopicTest extends Diskus\Testable\TestCase {

	/**
	 * Test Diskus\Presenter\Topic::table()
	 *
	 * @test
	 */
	public function testTableGenerator()
	{
		$topics = Diskus\Model\Topic::with(array('user'))->paginate(5);
		$stub   = Diskus\Presenter\Topic::table($topics);

		$refl = new \ReflectionObject($stub);
		$grid = $refl->getProperty('grid');
		$grid->setAccessible(true);
		$grid = $grid->getValue($stub);

		$this->assertInstanceOf('Orchestra\Table', $stub);
		$this->assertInstanceOf('Hybrid\Table\Grid', $grid);
		$this->assertEquals(Orchestra\Table::of('diskus.topics'), $stub);
	}
}<commit_msg>Reflect Orchestra Platform v1.1.0<commit_after><?php

Bundle::start('orchestra');
Bundle::start('diskus');

class PresentersTopicTest extends Diskus\Testable\TestCase {

	/**
	 * Test Diskus\Presenter\Topic::table()
	 *
	 * @test
	 */
	public function testTableGenerator()
	{
		$topics = Diskus\Model\Topic::with(array('user'))->paginate(5);
		$stub   = Diskus\Presenter\Topic::table($topics);

		$refl = new \ReflectionObject($stub);
		$grid = $refl->getProperty('grid');
		$grid->setAccessible(true);
		$grid = $grid->getValue($stub);

		$this->assertInstanceOf('Orchestra\Table', $stub);
		$this->assertInstanceOf('Orchestra\Support\Table\Grid', $grid);
		$this->assertEquals(Orchestra\Table::of('diskus.topics'), $stub);
	}
}
{'fraction_non_alphanumeric': 0.19831814996496147, 'fraction_numerical': 0.00350385423966363, 'mean_word_length': 5.641860465116279, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '7198196', 'n_tokens_mistral': 520, 'n_tokens_neox': 499, 'n_words': 65}