This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function testFirstSentence() { | |
$many = str_repeat('many ', 100); | |
$cases = array( | |
'<h1>should ignore</h1><p>First sentence. Second sentence.</p>' => 'First sentence.', | |
'<h1>should ignore</h1><p>First Mr. sentence. Second sentence.</p>' => 'First Mr. sentence.', | |
"<h1>should ignore</h1><p>Sentence with {$many}words. Second sentence.</p>" | |
=> "Sentence with {$many}words.", | |
'<p>This classic picture book features a repetitive format that lends itself to audience interaction. Illustrator Eric Carle submitted new, bolder artwork for the 25th anniversary edition.</p>' | |
=> 'This classic picture book features a repetitive format that lends itself to audience interaction.' | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./sake dev/benchmarks/all "flush=all" | |
SQLBENCHMARK | |
------------ | |
SQLBENCHMARK | |
benchmarkSelect | |
--------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./sake dev/benchmarks/all "flush=all" | |
SQLBENCHMARK | |
------------ | |
SQLBENCHMARK | |
benchmarkSelect | |
--------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./sake dev/benchmarks/all "flush=all" | |
SQLBENCHMARK | |
------------ | |
SQLBENCHMARK | |
benchmarkSelect | |
--------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SQLBenchmark extends SS_Benchmark { | |
protected static $fixture_file = 'SQLBenchmark.yml'; | |
protected $extraDataObjects = array( | |
'DataObjectTest_Team', | |
'DataObjectTest_Fixture', | |
'DataObjectTest_SubTeam', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DataObjectTest_Team: | |
team1: | |
Title: Team 1 | |
team2: | |
Title: Team 2 | |
team3: | |
Title: Team 3 | |
DataObjectTest_Player: | |
captain1: | |
FirstName: Captain |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./sake dev/benchmarks/all "flush=all" | |
SQLBENCHMARK | |
------------ | |
SQLBENCHMARK | |
benchmarkSelect | |
--------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./sake dev/benchmarks/all "flush=all" | |
SQLBENCHMARK | |
------------ | |
SQLBENCHMARK | |
benchmarkSelect | |
--------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rua-Hotseat:framework rua$ ./sake dev/benchmarks/all "flush=all" | |
SQLBENCHMARK | |
------------ | |
SQLBENCHMARK | |
benchmarkSelect | |
--------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rua-Hotseat:framework rua$ ./sake dev/benchmarks/all "flush=all" | |
SQLBENCHMARK | |
------------ | |
SQLBENCHMARK | |
benchmarkSelect | |
--------------- |
OlderNewer