public function benchStoreParams() { $uuid = uniqid(); $collection = TestUtil::createCollection([['uuid' => $uuid . 'a', 'parameters' => ['one' => 'two', 'three' => 'four', 'two' => 'five', '7' => 'eight'], 'env' => ['foo' => ['foo' => 'bar', 'bar' => 'foo'], 'bar' => ['foo' => 'bar', 'bar' => 'foo'], 'baz' => ['foo' => 'bar', 'bar' => 'foo'], 'bog' => ['foo' => 'bar', 'bar' => 'foo']]], ['uuid' => $uuid . 'b'], ['uuid' => $uuid . 'c'], ['uuid' => $uuid . 'd']]); $this->driver->store($collection); $uuid++; }
/** * It should generate an environment report for each suite. */ public function testEnvEachSuite() { $collection = TestUtil::createCollection([['env' => ['vcs' => ['branch' => 'my_branch']]], ['env' => ['vcs' => ['branch' => 'my_branch']]]]); $report = $this->generator->generate($collection, new Config('foo', [])); $this->assertXPathCount($report, 1, '//table[contains(@title, "Suite #0")]'); $this->assertXPathCount($report, 1, '//table[contains(@title, "Suite #1")]'); }
/** * It should customize the column names by column index. */ public function testCustomizeColumnLabelsIndex() { $report = $this->generate(TestUtil::createCollection([[]]), ['labels' => ['Column one', 'Column two', 'params' => 'Parameters']]); $this->assertXPathCount($report, 14, '//col'); $this->assertXPathEval($report, 'Column one', 'string(//table/cols/col[1]/@label)'); $this->assertXPathEval($report, 'Column two', 'string(//table/cols/col[2]/@label)'); $this->assertXPathEval($report, 'groups', 'string(//table/cols/col[3]/@label)'); $this->assertXPathEval($report, 'Parameters', 'string(//table/cols/col[4]/@label)'); }