Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Compiler tests

- Created suite of posts to run tests against
- fixed issues with entry and author validators
  • Loading branch information...
commit 664ce2d8f2be041c0fdc98ca953e57a896040cc1 1 parent b9a6d8e
@weierophinney weierophinney authored
Showing with 4,126 additions and 3 deletions.
  1. +1 −1  src/PhlyBlog/Filter/AuthorIsValid.php
  2. +2 −2 src/PhlyBlog/Filter/EntryFilter.php
  3. +75 −0 test/PhlyBlog/CompilerTest.php
  4. +40 −0 test/PhlyBlog/_posts/2004/01/06-4f8706cf6406c-post-name.php
  5. +37 −0 test/PhlyBlog/_posts/2004/01/14-4f8706cf63c78-post-name.php
  6. +43 −0 test/PhlyBlog/_posts/2004/03/04-4f8706cf61b0e-post-name.php
  7. +34 −0 test/PhlyBlog/_posts/2004/03/17-4f8706cf63d13-post-name.php
  8. +43 −0 test/PhlyBlog/_posts/2004/05/02-4f8706cf63759-post-name.php
  9. +40 −0 test/PhlyBlog/_posts/2004/05/22-4f8706cf6307b-post-name.php
  10. +37 −0 test/PhlyBlog/_posts/2004/07/18-4f8706cf63998-post-name.php
  11. +39 −0 test/PhlyBlog/_posts/2004/07/29-4f8706cf638fe-post-name.php
  12. +37 −0 test/PhlyBlog/_posts/2004/08/09-4f8706cf64157-post-name.php
  13. +41 −0 test/PhlyBlog/_posts/2004/08/30-4f8706cf6526f-post-name.php
  14. +43 −0 test/PhlyBlog/_posts/2004/08/30-4f8706cf65548-post-name.php
  15. +42 −0 test/PhlyBlog/_posts/2004/10/09-4f8706cf65a64-post-name.php
  16. +38 −0 test/PhlyBlog/_posts/2004/11/17-4f8706cf659d7-post-name.php
  17. +29 −0 test/PhlyBlog/_posts/2004/11/23-4f8706cf64f50-post-name.php
  18. +37 −0 test/PhlyBlog/_posts/2004/12/20-4f8706cf62d66-post-name.php
  19. +36 −0 test/PhlyBlog/_posts/2005/01/19-4f8706cf61cce-post-name.php
  20. +37 −0 test/PhlyBlog/_posts/2005/02/25-4f8706cf65054-post-name.php
  21. +43 −0 test/PhlyBlog/_posts/2005/03/09-4f8706cf6566b-post-name.php
  22. +36 −0 test/PhlyBlog/_posts/2005/04/01-4f8706cf65b81-post-name.php
  23. +43 −0 test/PhlyBlog/_posts/2005/05/20-4f8706cf635b3-post-name.php
  24. +45 −0 test/PhlyBlog/_posts/2005/06/05-4f8706cf6329e-post-name.php
  25. +39 −0 test/PhlyBlog/_posts/2005/06/08-4f8706cf63bf1-post-name.php
  26. +44 −0 test/PhlyBlog/_posts/2005/09/03-4f8706cf6600b-post-name.php
  27. +35 −0 test/PhlyBlog/_posts/2005/10/15-4f8706cf63ebc-post-name.php
  28. +38 −0 test/PhlyBlog/_posts/2005/10/23-4f8706cf63f8f-post-name.php
  29. +41 −0 test/PhlyBlog/_posts/2005/12/10-4f8706cf64679-post-name.php
  30. +39 −0 test/PhlyBlog/_posts/2006/01/24-4f8706cf62949-post-name.php
  31. +42 −0 test/PhlyBlog/_posts/2006/02/21-4f8706cf62119-post-name.php
  32. +41 −0 test/PhlyBlog/_posts/2006/03/01-4f8706cf654c5-post-name.php
  33. +41 −0 test/PhlyBlog/_posts/2006/03/23-4f8706cf619e3-post-name.php
  34. +34 −0 test/PhlyBlog/_posts/2006/04/11-4f8706cf65caf-post-name.php
  35. +38 −0 test/PhlyBlog/_posts/2006/06/01-4f8706cf66133-post-name.php
  36. +44 −0 test/PhlyBlog/_posts/2006/07/03-4f8706cf6233e-post-name.php
  37. +43 −0 test/PhlyBlog/_posts/2006/07/23-4f8706cf62229-post-name.php
  38. +41 −0 test/PhlyBlog/_posts/2006/09/10-4f8706cf65efa-post-name.php
  39. +41 −0 test/PhlyBlog/_posts/2006/09/28-4f8706cf64273-post-name.php
  40. +30 −0 test/PhlyBlog/_posts/2007/01/15-4f8706cf61bcb-post-name.php
  41. +38 −0 test/PhlyBlog/_posts/2007/03/12-4f8706cf62551-post-name.php
  42. +44 −0 test/PhlyBlog/_posts/2007/03/12-4f8706cf64875-post-name.php
  43. +45 −0 test/PhlyBlog/_posts/2007/04/24-4f8706cf63d98-post-name.php
  44. +31 −0 test/PhlyBlog/_posts/2007/06/05-4f8706cf64387-post-name.php
  45. +38 −0 test/PhlyBlog/_posts/2007/06/11-4f8706cf61341-post-name.php
  46. +44 −0 test/PhlyBlog/_posts/2007/08/10-4f8706cf6318f-post-name.php
  47. +38 −0 test/PhlyBlog/_posts/2007/09/15-4f8706cf618a3-post-name.php
  48. +43 −0 test/PhlyBlog/_posts/2007/12/13-4f8706cf633ba-post-name.php
  49. +38 −0 test/PhlyBlog/_posts/2007/12/19-4f8706cf61740-post-name.php
  50. +37 −0 test/PhlyBlog/_posts/2007/12/31-4f8706cf65afe-post-name.php
  51. +39 −0 test/PhlyBlog/_posts/2008/01/17-4f8706cf6495b-post-name.php
  52. +45 −0 test/PhlyBlog/_posts/2008/01/25-4f8706cf65de4-post-name.php
  53. BIN  test/PhlyBlog/_posts/2008/02/.bogus.php.swp
  54. +37 −0 test/PhlyBlog/_posts/2008/02/14-4f8706cf634a3-post-name.php
  55. +2 −0  test/PhlyBlog/_posts/2008/02/bogus.php
  56. +43 −0 test/PhlyBlog/_posts/2008/03/25-4f8706cf6456f-post-name.php
  57. +44 −0 test/PhlyBlog/_posts/2008/04/05-4f8706cf62f8f-post-name.php
  58. +44 −0 test/PhlyBlog/_posts/2008/04/30-4f8706cf61dff-post-name.php
  59. +29 −0 test/PhlyBlog/_posts/2008/04/30-4f8706cf6543a-post-name.php
  60. +41 −0 test/PhlyBlog/_posts/2008/05/14-4f8706cf661ca-post-name.php
  61. +32 −0 test/PhlyBlog/_posts/2008/06/09-4f8706cf657a4-post-name.php
  62. +38 −0 test/PhlyBlog/_posts/2008/08/18-4f8706cf61f0c-post-name.php
  63. +42 −0 test/PhlyBlog/_posts/2008/08/20-4f8706cf65f81-post-name.php
  64. +40 −0 test/PhlyBlog/_posts/2008/10/19-4f8706cf64e47-post-name.php
  65. +36 −0 test/PhlyBlog/_posts/2008/12/07-4f8706cf6154e-post-name.php
  66. +45 −0 test/PhlyBlog/_posts/2008/12/07-4f8706cf6265b-post-name.php
  67. +41 −0 test/PhlyBlog/_posts/2008/12/20-4f8706cf637e0-post-name.php
  68. +35 −0 test/PhlyBlog/_posts/2008/12/31-4f8706cf61a8e-post-name.php
  69. +40 −0 test/PhlyBlog/_posts/2009/02/25-4f8706cf63abc-post-name.php
  70. +45 −0 test/PhlyBlog/_posts/2009/04/16-4f8706cf658c2-post-name.php
  71. +43 −0 test/PhlyBlog/_posts/2009/04/18-4f8706cf6478a-post-name.php
  72. +41 −0 test/PhlyBlog/_posts/2009/04/24-4f8706cf6241b-post-name.php
  73. +41 −0 test/PhlyBlog/_posts/2009/05/21-4f8706cf63a1c-post-name.php
  74. +38 −0 test/PhlyBlog/_posts/2009/09/07-4f8706cf636c0-post-name.php
  75. +44 −0 test/PhlyBlog/_posts/2009/10/12-4f8706cf63865-post-name.php
  76. +43 −0 test/PhlyBlog/_posts/2010/02/18-4f8706cf61672-post-name.php
  77. +41 −0 test/PhlyBlog/_posts/2010/02/19-4f8706cf62c7b-post-name.php
  78. +41 −0 test/PhlyBlog/_posts/2010/02/22-4f8706cf6594d-post-name.php
  79. +43 −0 test/PhlyBlog/_posts/2010/03/11-4f8706cf6282d-post-name.php
  80. +36 −0 test/PhlyBlog/_posts/2010/03/11-4f8706cf64a75-post-name.php
  81. +40 −0 test/PhlyBlog/_posts/2010/03/26-4f8706cf66262-post-name.php
  82. +39 −0 test/PhlyBlog/_posts/2010/06/04-4f8706cf64462-post-name.php
  83. +31 −0 test/PhlyBlog/_posts/2010/07/01-4f8706cf65c18-post-name.php
  84. +38 −0 test/PhlyBlog/_posts/2010/09/14-4f8706cf63b58-post-name.php
  85. +37 −0 test/PhlyBlog/_posts/2010/09/22-4f8706cf660a9-post-name.php
  86. +45 −0 test/PhlyBlog/_posts/2010/10/06-4f8706cf61946-post-name.php
  87. +40 −0 test/PhlyBlog/_posts/2010/10/24-4f8706cf65e71-post-name.php
  88. +45 −0 test/PhlyBlog/_posts/2010/11/15-4f8706cf65160-post-name.php
  89. +44 −0 test/PhlyBlog/_posts/2010/11/16-4f8706cf66383-post-name.php
  90. +36 −0 test/PhlyBlog/_posts/2010/12/04-4f8706cf65838-post-name.php
  91. +42 −0 test/PhlyBlog/_posts/2010/12/11-4f8706cf64d59-post-name.php
  92. +44 −0 test/PhlyBlog/_posts/2010/12/27-4f8706cf64b5b-post-name.php
  93. +42 −0 test/PhlyBlog/_posts/2011/01/05-4f8706cf6201d-post-name.php
  94. +40 −0 test/PhlyBlog/_posts/2011/02/12-4f8706cf62a5a-post-name.php
  95. +39 −0 test/PhlyBlog/_posts/2011/02/18-4f8706cf6535d-post-name.php
  96. +44 −0 test/PhlyBlog/_posts/2011/02/24-4f8706cf62b84-post-name.php
  97. +45 −0 test/PhlyBlog/_posts/2011/03/26-4f8706cf655d1-post-name.php
  98. +43 −0 test/PhlyBlog/_posts/2011/04/09-4f8706cf64c67-post-name.php
  99. +44 −0 test/PhlyBlog/_posts/2011/04/15-4f8706cf617ec-post-name.php
  100. +45 −0 test/PhlyBlog/_posts/2011/04/21-4f8706cf62745-post-name.php
  101. +42 −0 test/PhlyBlog/_posts/2011/05/20-4f8706cf62e7c-post-name.php
  102. +43 −0 test/PhlyBlog/_posts/2011/05/22-4f8706cf63e31-post-name.php
  103. +45 −0 test/PhlyBlog/_posts/2011/09/17-4f8706cf65705-post-name.php
  104. +40 −0 test/PhlyBlog/_posts/2011/10/07-4f8706cf662ec-post-name.php
  105. +39 −0 test/PhlyBlog/_posts/2011/12/09-4f8706cf65d49-post-name.php
  106. +39 −0 test/PhlyBlog/_posts/invalid-post.php
  107. +1 −0  test/PhlyBlog/_posts/metadata.json
View
2  src/PhlyBlog/Filter/AuthorIsValid.php
@@ -23,7 +23,7 @@ public function isValid($value)
$this->setValue($value);
if (is_string($value)) {
- if (strlen($value) < 0) {
+ if (strlen($value) < 1) {
$this->error(self::INVALID_NAME_TOO_SHORT);
return false;
}
View
4 src/PhlyBlog/Filter/EntryFilter.php
@@ -40,8 +40,8 @@ public function __construct()
'message' => 'Invalid timestamp for updated date.',
'allowEmpty' => true,
),
- 'is_draft' => array(array('callback', 'is_bool'), 'presence' => 'required', 'allowEmpty' => true, 'message' => 'Please select a flag indicating draft status.'),
- 'is_public' => array(array('callback', 'is_bool'), 'presence' => 'required', 'allowEmpty' => true, 'message' => 'Please select a flag indicating publication status.'),
+ 'is_draft' => array(array('InArray', array('haystack' => array(true, false), 'strict' => true)), 'presence' => 'required', 'allowEmpty' => true, 'message' => 'Please select a flag indicating draft status.'),
+ 'is_public' => array(array('InArray', array('haystack' => array(true, false), 'strict' => true)), 'presence' => 'required', 'allowEmpty' => true, 'message' => 'Please select a flag indicating publication status.'),
'tags' => new Tags(),
'timezone' => array(new TimezoneValidator(), 'required' => true),
);
View
75 test/PhlyBlog/CompilerTest.php
@@ -0,0 +1,75 @@
+<?php
+namespace PhlyBlog;
+
+use PHPUnit_Framework_TestCase as TestCase;
+use stdClass;
+
+class CompilerTest extends TestCase
+{
+ public function setUp()
+ {
+ $this->files = new Compiler\PhpFileFilter(__DIR__ . '/_posts');
+ $this->compiler = new Compiler($this->files);
+ $json = file_get_contents(__DIR__ . '/_posts/metadata.json');
+ $this->metadata = json_decode($json, true);
+ }
+
+ public function testTriggersCompileEventForEachValidEntryFile()
+ {
+ $expected = 0;
+ foreach ($this->metadata as $entry) {
+ if ($entry['draft']) {
+ continue;
+ }
+ $expected++;
+ }
+
+ $marker = new stdClass;
+ $marker->count = 0;
+ $this->compiler->events()->attach('compile', function($e) use ($marker) {
+ $marker->count++;
+ });
+
+ $this->compiler->compile();
+
+ $this->assertEquals($expected, $marker->count);
+ }
+
+ public function testCompileEventPassesEntryAndDate()
+ {
+ $self = $this;
+ $this->compiler->events()->attach('compile', function($e) use ($self) {
+ $entry = $e->getEntry();
+ $self->assertInstanceOf('PhlyBlog\EntryEntity', $entry);
+
+ $date = $e->getDate();
+ $self->assertInstanceOf('DateTime', $date);
+ });
+ $this->compiler->compile();
+ }
+
+ public function testCompileEndEventIsTriggeredExactlyOnce()
+ {
+ $marker = new stdClass;
+ $marker->count = 0;
+ $this->compiler->events()->attach('compile.end', function($e) use ($marker) {
+ $marker->count++;
+ });
+
+ $this->compiler->compile();
+ $this->assertEquals(1, $marker->count);
+ }
+
+ public function testCompileEndEventReceivesEmptyEntryAndDate()
+ {
+ $self = $this;
+ $this->compiler->events()->attach('compile.end', function($e) use ($self) {
+ $entry = $e->getEntry();
+ $date = $e->getDate();
+ $self->assertNull($entry);
+ $self->assertNull($date);
+ });
+
+ $this->compiler->compile();
+ }
+}
View
40 test/PhlyBlog/_posts/2004/01/06-4f8706cf6406c-post-name.php
@@ -0,0 +1,40 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'aamilne',
+ 'name' => 'A.A. Milne',
+ 'email' => 'a.a@milne.com',
+ 'url' => 'http://milne.com',
+));
+
+$entry->setId('4f8706cf6406c-post-name');
+$entry->setTitle('4f8706cf6406c Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2004:01:06 05:41:41'));
+$entry->setUpdated(new DateTime('2004:01:06 05:41:41'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'personal',
+ 2 => 'programming',
+ 3 => 'thoughts',
+ 4 => 'conferences',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
37 test/PhlyBlog/_posts/2004/01/14-4f8706cf63c78-post-name.php
@@ -0,0 +1,37 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'crazyhorse',
+ 'name' => 'Crazy Horse',
+ 'email' => 'crazyhorse@siouxnation.org',
+ 'url' => 'http://crazyhorse.siouxnation.org',
+));
+
+$entry->setId('4f8706cf63c78-post-name');
+$entry->setTitle('4f8706cf63c78 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2004:01:14 23:27:27'));
+$entry->setUpdated(new DateTime('2004:01:14 23:27:27'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'draft',
+ 1 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
43 test/PhlyBlog/_posts/2004/03/04-4f8706cf61b0e-post-name.php
@@ -0,0 +1,43 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'custer',
+ 'name' => 'George Armstrong Custer',
+ 'email' => 'me@gacuster.com',
+ 'url' => 'http://www.gacuster.com',
+));
+
+$entry->setId('4f8706cf61b0e-post-name');
+$entry->setTitle('4f8706cf61b0e Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2004:03:04 22:00:00'));
+$entry->setUpdated(new DateTime('2004:03:04 22:00:00'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'personal',
+ 1 => 'programming',
+ 2 => 'thoughts',
+ 3 => 'war',
+ 4 => 'children',
+ 5 => 'draft',
+ 6 => 'conferences',
+ 7 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
34 test/PhlyBlog/_posts/2004/03/17-4f8706cf63d13-post-name.php
@@ -0,0 +1,34 @@
+<?php
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+
+$entry->setId('4f8706cf63d13-post-name');
+$entry->setTitle('4f8706cf63d13 Post');
+$entry->setAuthor('custer');
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2004:03:17 08:57:57'));
+$entry->setUpdated(new DateTime('2004:03:17 08:57:57'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'personal',
+ 1 => 'thoughts',
+ 2 => 'literature',
+ 3 => 'children',
+ 4 => 'draft',
+ 5 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
+
View
43 test/PhlyBlog/_posts/2004/05/02-4f8706cf63759-post-name.php
@@ -0,0 +1,43 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'jdoe',
+ 'name' => 'John Doe',
+ 'email' => 'john@doe.com',
+ 'url' => 'http://john.doe.com',
+));
+
+$entry->setId('4f8706cf63759-post-name');
+$entry->setTitle('4f8706cf63759 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2004:05:02 13:09:09'));
+$entry->setUpdated(new DateTime('2004:05:02 13:09:09'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'personal',
+ 1 => 'programming',
+ 2 => 'thoughts',
+ 3 => 'war',
+ 4 => 'literature',
+ 5 => 'children',
+ 6 => 'conferences',
+ 7 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
40 test/PhlyBlog/_posts/2004/05/22-4f8706cf6307b-post-name.php
@@ -0,0 +1,40 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'custer',
+ 'name' => 'George Armstrong Custer',
+ 'email' => 'me@gacuster.com',
+ 'url' => 'http://www.gacuster.com',
+));
+
+$entry->setId('4f8706cf6307b-post-name');
+$entry->setTitle('4f8706cf6307b Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2004:05:22 09:38:38'));
+$entry->setUpdated(new DateTime('2004:05:22 09:38:38'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'thoughts',
+ 1 => 'literature',
+ 2 => 'children',
+ 3 => 'draft',
+ 4 => 'conferences',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
37 test/PhlyBlog/_posts/2004/07/18-4f8706cf63998-post-name.php
@@ -0,0 +1,37 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'jdoe',
+ 'name' => 'John Doe',
+ 'email' => 'john@doe.com',
+ 'url' => 'http://john.doe.com',
+));
+
+$entry->setId('4f8706cf63998-post-name');
+$entry->setTitle('4f8706cf63998 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2004:07:18 14:02:02'));
+$entry->setUpdated(new DateTime('2004:07:18 14:02:02'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'war',
+ 1 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
39 test/PhlyBlog/_posts/2004/07/29-4f8706cf638fe-post-name.php
@@ -0,0 +1,39 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'custer',
+ 'name' => 'George Armstrong Custer',
+ 'email' => 'me@gacuster.com',
+ 'url' => 'http://www.gacuster.com',
+));
+
+$entry->setId('4f8706cf638fe-post-name');
+$entry->setTitle('4f8706cf638fe Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2004:07:29 09:13:13'));
+$entry->setUpdated(new DateTime('2004:07:29 09:13:13'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'personal',
+ 1 => 'literature',
+ 2 => 'conferences',
+ 3 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
37 test/PhlyBlog/_posts/2004/08/09-4f8706cf64157-post-name.php
@@ -0,0 +1,37 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'aamilne',
+ 'name' => 'A.A. Milne',
+ 'email' => 'a.a@milne.com',
+ 'url' => 'http://milne.com',
+));
+
+$entry->setId('4f8706cf64157-post-name');
+$entry->setTitle('4f8706cf64157 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2004:08:09 20:03:03'));
+$entry->setUpdated(new DateTime('2004:08:09 20:03:03'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'personal',
+ 1 => 'war',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
41 test/PhlyBlog/_posts/2004/08/30-4f8706cf6526f-post-name.php
@@ -0,0 +1,41 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'aamilne',
+ 'name' => 'A.A. Milne',
+ 'email' => 'a.a@milne.com',
+ 'url' => 'http://milne.com',
+));
+
+$entry->setId('4f8706cf6526f-post-name');
+$entry->setTitle('4f8706cf6526f Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2004:08:30 16:57:57'));
+$entry->setUpdated(new DateTime('2004:08:30 16:57:57'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'programming',
+ 2 => 'war',
+ 3 => 'literature',
+ 4 => 'draft',
+ 5 => 'conferences',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
43 test/PhlyBlog/_posts/2004/08/30-4f8706cf65548-post-name.php
@@ -0,0 +1,43 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'jdoe',
+ 'name' => 'John Doe',
+ 'email' => 'john@doe.com',
+ 'url' => 'http://john.doe.com',
+));
+
+$entry->setId('4f8706cf65548-post-name');
+$entry->setTitle('4f8706cf65548 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2004:08:30 10:05:05'));
+$entry->setUpdated(new DateTime('2004:08:30 10:05:05'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'personal',
+ 2 => 'programming',
+ 3 => 'thoughts',
+ 4 => 'children',
+ 5 => 'draft',
+ 6 => 'conferences',
+ 7 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
42 test/PhlyBlog/_posts/2004/10/09-4f8706cf65a64-post-name.php
@@ -0,0 +1,42 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'custer',
+ 'name' => 'George Armstrong Custer',
+ 'email' => 'me@gacuster.com',
+ 'url' => 'http://www.gacuster.com',
+));
+
+$entry->setId('4f8706cf65a64-post-name');
+$entry->setTitle('4f8706cf65a64 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2004:10:09 23:58:58'));
+$entry->setUpdated(new DateTime('2004:10:09 23:58:58'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'war',
+ 2 => 'literature',
+ 3 => 'children',
+ 4 => 'draft',
+ 5 => 'conferences',
+ 6 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
38 test/PhlyBlog/_posts/2004/11/17-4f8706cf659d7-post-name.php
@@ -0,0 +1,38 @@
+<?php
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+
+$entry->setId('4f8706cf659d7-post-name');
+$entry->setTitle('4f8706cf659d7 Post');
+$entry->setAuthor('custer');
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2004:11:17 17:27:27'));
+$entry->setUpdated(new DateTime('2004:11:17 17:27:27'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'personal',
+ 2 => 'programming',
+ 3 => 'thoughts',
+ 4 => 'war',
+ 5 => 'literature',
+ 6 => 'children',
+ 7 => 'draft',
+ 8 => 'conferences',
+ 9 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
+
View
29 test/PhlyBlog/_posts/2004/11/23-4f8706cf64f50-post-name.php
@@ -0,0 +1,29 @@
+<?php
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+
+$entry->setId('4f8706cf64f50-post-name');
+$entry->setTitle('4f8706cf64f50 Post');
+$entry->setAuthor('aamilne');
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2004:11:23 22:37:37'));
+$entry->setUpdated(new DateTime('2004:11:23 22:37:37'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'war',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
+
View
37 test/PhlyBlog/_posts/2004/12/20-4f8706cf62d66-post-name.php
@@ -0,0 +1,37 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'custer',
+ 'name' => 'George Armstrong Custer',
+ 'email' => 'me@gacuster.com',
+ 'url' => 'http://www.gacuster.com',
+));
+
+$entry->setId('4f8706cf62d66-post-name');
+$entry->setTitle('4f8706cf62d66 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2004:12:20 00:37:37'));
+$entry->setUpdated(new DateTime('2004:12:20 00:37:37'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'personal',
+ 1 => 'programming',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
36 test/PhlyBlog/_posts/2005/01/19-4f8706cf61cce-post-name.php
@@ -0,0 +1,36 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'crazyhorse',
+ 'name' => 'Crazy Horse',
+ 'email' => 'crazyhorse@siouxnation.org',
+ 'url' => 'http://crazyhorse.siouxnation.org',
+));
+
+$entry->setId('4f8706cf61cce-post-name');
+$entry->setTitle('4f8706cf61cce Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2005:01:19 11:18:18'));
+$entry->setUpdated(new DateTime('2005:01:19 11:18:18'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'children',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
37 test/PhlyBlog/_posts/2005/02/25-4f8706cf65054-post-name.php
@@ -0,0 +1,37 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'crazyhorse',
+ 'name' => 'Crazy Horse',
+ 'email' => 'crazyhorse@siouxnation.org',
+ 'url' => 'http://crazyhorse.siouxnation.org',
+));
+
+$entry->setId('4f8706cf65054-post-name');
+$entry->setTitle('4f8706cf65054 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2005:02:25 08:05:05'));
+$entry->setUpdated(new DateTime('2005:02:25 08:05:05'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'thoughts',
+ 1 => 'draft',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
43 test/PhlyBlog/_posts/2005/03/09-4f8706cf6566b-post-name.php
@@ -0,0 +1,43 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'jdoe',
+ 'name' => 'John Doe',
+ 'email' => 'john@doe.com',
+ 'url' => 'http://john.doe.com',
+));
+
+$entry->setId('4f8706cf6566b-post-name');
+$entry->setTitle('4f8706cf6566b Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2005:03:09 04:19:19'));
+$entry->setUpdated(new DateTime('2005:03:09 04:19:19'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'personal',
+ 2 => 'programming',
+ 3 => 'war',
+ 4 => 'literature',
+ 5 => 'children',
+ 6 => 'draft',
+ 7 => 'conferences',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
36 test/PhlyBlog/_posts/2005/04/01-4f8706cf65b81-post-name.php
@@ -0,0 +1,36 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'jdoe',
+ 'name' => 'John Doe',
+ 'email' => 'john@doe.com',
+ 'url' => 'http://john.doe.com',
+));
+
+$entry->setId('4f8706cf65b81-post-name');
+$entry->setTitle('4f8706cf65b81 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2005:04:01 21:15:15'));
+$entry->setUpdated(new DateTime('2005:04:01 21:15:15'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'draft',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
43 test/PhlyBlog/_posts/2005/05/20-4f8706cf635b3-post-name.php
@@ -0,0 +1,43 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'custer',
+ 'name' => 'George Armstrong Custer',
+ 'email' => 'me@gacuster.com',
+ 'url' => 'http://www.gacuster.com',
+));
+
+$entry->setId('4f8706cf635b3-post-name');
+$entry->setTitle('4f8706cf635b3 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2005:05:20 02:51:51'));
+$entry->setUpdated(new DateTime('2005:05:20 02:51:51'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'personal',
+ 2 => 'programming',
+ 3 => 'war',
+ 4 => 'literature',
+ 5 => 'children',
+ 6 => 'draft',
+ 7 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
45 test/PhlyBlog/_posts/2005/06/05-4f8706cf6329e-post-name.php
@@ -0,0 +1,45 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'aamilne',
+ 'name' => 'A.A. Milne',
+ 'email' => 'a.a@milne.com',
+ 'url' => 'http://milne.com',
+));
+
+$entry->setId('4f8706cf6329e-post-name');
+$entry->setTitle('4f8706cf6329e Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2005:06:05 18:00:00'));
+$entry->setUpdated(new DateTime('2005:06:05 18:00:00'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'personal',
+ 2 => 'programming',
+ 3 => 'thoughts',
+ 4 => 'war',
+ 5 => 'literature',
+ 6 => 'children',
+ 7 => 'draft',
+ 8 => 'conferences',
+ 9 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
39 test/PhlyBlog/_posts/2005/06/08-4f8706cf63bf1-post-name.php
@@ -0,0 +1,39 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'crazyhorse',
+ 'name' => 'Crazy Horse',
+ 'email' => 'crazyhorse@siouxnation.org',
+ 'url' => 'http://crazyhorse.siouxnation.org',
+));
+
+$entry->setId('4f8706cf63bf1-post-name');
+$entry->setTitle('4f8706cf63bf1 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2005:06:08 03:42:42'));
+$entry->setUpdated(new DateTime('2005:06:08 03:42:42'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'programming',
+ 1 => 'thoughts',
+ 2 => 'draft',
+ 3 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
44 test/PhlyBlog/_posts/2005/09/03-4f8706cf6600b-post-name.php
@@ -0,0 +1,44 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'custer',
+ 'name' => 'George Armstrong Custer',
+ 'email' => 'me@gacuster.com',
+ 'url' => 'http://www.gacuster.com',
+));
+
+$entry->setId('4f8706cf6600b-post-name');
+$entry->setTitle('4f8706cf6600b Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2005:09:03 17:02:02'));
+$entry->setUpdated(new DateTime('2005:09:03 17:02:02'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'personal',
+ 1 => 'programming',
+ 2 => 'thoughts',
+ 3 => 'war',
+ 4 => 'literature',
+ 5 => 'children',
+ 6 => 'draft',
+ 7 => 'conferences',
+ 8 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
35 test/PhlyBlog/_posts/2005/10/15-4f8706cf63ebc-post-name.php
@@ -0,0 +1,35 @@
+<?php
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+
+$entry->setId('4f8706cf63ebc-post-name');
+$entry->setTitle('4f8706cf63ebc Post');
+$entry->setAuthor('aamilne');
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2005:10:15 21:47:47'));
+$entry->setUpdated(new DateTime('2005:10:15 21:47:47'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'thoughts',
+ 2 => 'war',
+ 3 => 'literature',
+ 4 => 'draft',
+ 5 => 'conferences',
+ 6 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
+
View
38 test/PhlyBlog/_posts/2005/10/23-4f8706cf63f8f-post-name.php
@@ -0,0 +1,38 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'aamilne',
+ 'name' => 'A.A. Milne',
+ 'email' => 'a.a@milne.com',
+ 'url' => 'http://milne.com',
+));
+
+$entry->setId('4f8706cf63f8f-post-name');
+$entry->setTitle('4f8706cf63f8f Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2005:10:23 11:48:48'));
+$entry->setUpdated(new DateTime('2005:10:23 11:48:48'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'children',
+ 2 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
41 test/PhlyBlog/_posts/2005/12/10-4f8706cf64679-post-name.php
@@ -0,0 +1,41 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'aamilne',
+ 'name' => 'A.A. Milne',
+ 'email' => 'a.a@milne.com',
+ 'url' => 'http://milne.com',
+));
+
+$entry->setId('4f8706cf64679-post-name');
+$entry->setTitle('4f8706cf64679 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2005:12:10 18:25:25'));
+$entry->setUpdated(new DateTime('2005:12:10 18:25:25'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'programming',
+ 1 => 'thoughts',
+ 2 => 'war',
+ 3 => 'literature',
+ 4 => 'children',
+ 5 => 'draft',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
39 test/PhlyBlog/_posts/2006/01/24-4f8706cf62949-post-name.php
@@ -0,0 +1,39 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'jdoe',
+ 'name' => 'John Doe',
+ 'email' => 'john@doe.com',
+ 'url' => 'http://john.doe.com',
+));
+
+$entry->setId('4f8706cf62949-post-name');
+$entry->setTitle('4f8706cf62949 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2006:01:24 22:16:16'));
+$entry->setUpdated(new DateTime('2006:01:24 22:16:16'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'programming',
+ 2 => 'conferences',
+ 3 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
42 test/PhlyBlog/_posts/2006/02/21-4f8706cf62119-post-name.php
@@ -0,0 +1,42 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'aamilne',
+ 'name' => 'A.A. Milne',
+ 'email' => 'a.a@milne.com',
+ 'url' => 'http://milne.com',
+));
+
+$entry->setId('4f8706cf62119-post-name');
+$entry->setTitle('4f8706cf62119 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2006:02:21 19:06:06'));
+$entry->setUpdated(new DateTime('2006:02:21 19:06:06'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'personal',
+ 2 => 'thoughts',
+ 3 => 'literature',
+ 4 => 'children',
+ 5 => 'conferences',
+ 6 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
41 test/PhlyBlog/_posts/2006/03/01-4f8706cf654c5-post-name.php
@@ -0,0 +1,41 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'aamilne',
+ 'name' => 'A.A. Milne',
+ 'email' => 'a.a@milne.com',
+ 'url' => 'http://milne.com',
+));
+
+$entry->setId('4f8706cf654c5-post-name');
+$entry->setTitle('4f8706cf654c5 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2006:03:01 04:57:57'));
+$entry->setUpdated(new DateTime('2006:03:01 04:57:57'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'personal',
+ 1 => 'programming',
+ 2 => 'thoughts',
+ 3 => 'literature',
+ 4 => 'draft',
+ 5 => 'conferences',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
41 test/PhlyBlog/_posts/2006/03/23-4f8706cf619e3-post-name.php
@@ -0,0 +1,41 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'crazyhorse',
+ 'name' => 'Crazy Horse',
+ 'email' => 'crazyhorse@siouxnation.org',
+ 'url' => 'http://crazyhorse.siouxnation.org',
+));
+
+$entry->setId('4f8706cf619e3-post-name');
+$entry->setTitle('4f8706cf619e3 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2006:03:23 06:39:39'));
+$entry->setUpdated(new DateTime('2006:03:23 06:39:39'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'personal',
+ 2 => 'literature',
+ 3 => 'children',
+ 4 => 'draft',
+ 5 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
34 test/PhlyBlog/_posts/2006/04/11-4f8706cf65caf-post-name.php
@@ -0,0 +1,34 @@
+<?php
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+
+$entry->setId('4f8706cf65caf-post-name');
+$entry->setTitle('4f8706cf65caf Post');
+$entry->setAuthor('crazyhorse');
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2006:04:11 02:19:19'));
+$entry->setUpdated(new DateTime('2006:04:11 02:19:19'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'programming',
+ 2 => 'thoughts',
+ 3 => 'literature',
+ 4 => 'draft',
+ 5 => 'conferences',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
+
View
38 test/PhlyBlog/_posts/2006/06/01-4f8706cf66133-post-name.php
@@ -0,0 +1,38 @@
+<?php
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+
+$entry->setId('4f8706cf66133-post-name');
+$entry->setTitle('4f8706cf66133 Post');
+$entry->setAuthor('custer');
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2006:06:01 10:17:17'));
+$entry->setUpdated(new DateTime('2006:06:01 10:17:17'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'personal',
+ 2 => 'programming',
+ 3 => 'thoughts',
+ 4 => 'war',
+ 5 => 'literature',
+ 6 => 'children',
+ 7 => 'draft',
+ 8 => 'conferences',
+ 9 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
+
View
44 test/PhlyBlog/_posts/2006/07/03-4f8706cf6233e-post-name.php
@@ -0,0 +1,44 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'crazyhorse',
+ 'name' => 'Crazy Horse',
+ 'email' => 'crazyhorse@siouxnation.org',
+ 'url' => 'http://crazyhorse.siouxnation.org',
+));
+
+$entry->setId('4f8706cf6233e-post-name');
+$entry->setTitle('4f8706cf6233e Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2006:07:03 17:05:05'));
+$entry->setUpdated(new DateTime('2006:07:03 17:05:05'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'programming',
+ 2 => 'thoughts',
+ 3 => 'war',
+ 4 => 'literature',
+ 5 => 'children',
+ 6 => 'draft',
+ 7 => 'conferences',
+ 8 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
43 test/PhlyBlog/_posts/2006/07/23-4f8706cf62229-post-name.php
@@ -0,0 +1,43 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'jdoe',
+ 'name' => 'John Doe',
+ 'email' => 'john@doe.com',
+ 'url' => 'http://john.doe.com',
+));
+
+$entry->setId('4f8706cf62229-post-name');
+$entry->setTitle('4f8706cf62229 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2006:07:23 22:18:18'));
+$entry->setUpdated(new DateTime('2006:07:23 22:18:18'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'personal',
+ 1 => 'programming',
+ 2 => 'thoughts',
+ 3 => 'war',
+ 4 => 'literature',
+ 5 => 'children',
+ 6 => 'draft',
+ 7 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
41 test/PhlyBlog/_posts/2006/09/10-4f8706cf65efa-post-name.php
@@ -0,0 +1,41 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'custer',
+ 'name' => 'George Armstrong Custer',
+ 'email' => 'me@gacuster.com',
+ 'url' => 'http://www.gacuster.com',
+));
+
+$entry->setId('4f8706cf65efa-post-name');
+$entry->setTitle('4f8706cf65efa Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2006:09:10 07:26:26'));
+$entry->setUpdated(new DateTime('2006:09:10 07:26:26'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'personal',
+ 1 => 'programming',
+ 2 => 'war',
+ 3 => 'children',
+ 4 => 'conferences',
+ 5 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
41 test/PhlyBlog/_posts/2006/09/28-4f8706cf64273-post-name.php
@@ -0,0 +1,41 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'custer',
+ 'name' => 'George Armstrong Custer',
+ 'email' => 'me@gacuster.com',
+ 'url' => 'http://www.gacuster.com',
+));
+
+$entry->setId('4f8706cf64273-post-name');
+$entry->setTitle('4f8706cf64273 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2006:09:28 06:34:34'));
+$entry->setUpdated(new DateTime('2006:09:28 06:34:34'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'personal',
+ 2 => 'programming',
+ 3 => 'thoughts',
+ 4 => 'war',
+ 5 => 'children',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
30 test/PhlyBlog/_posts/2007/01/15-4f8706cf61bcb-post-name.php
@@ -0,0 +1,30 @@
+<?php
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+
+$entry->setId('4f8706cf61bcb-post-name');
+$entry->setTitle('4f8706cf61bcb Post');
+$entry->setAuthor('jdoe');
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2007:01:15 16:29:29'));
+$entry->setUpdated(new DateTime('2007:01:15 16:29:29'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'programming',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
+
View
38 test/PhlyBlog/_posts/2007/03/12-4f8706cf62551-post-name.php
@@ -0,0 +1,38 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'custer',
+ 'name' => 'George Armstrong Custer',
+ 'email' => 'me@gacuster.com',
+ 'url' => 'http://www.gacuster.com',
+));
+
+$entry->setId('4f8706cf62551-post-name');
+$entry->setTitle('4f8706cf62551 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2007:03:12 04:24:24'));
+$entry->setUpdated(new DateTime('2007:03:12 04:24:24'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'personal',
+ 1 => 'programming',
+ 2 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
44 test/PhlyBlog/_posts/2007/03/12-4f8706cf64875-post-name.php
@@ -0,0 +1,44 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'aamilne',
+ 'name' => 'A.A. Milne',
+ 'email' => 'a.a@milne.com',
+ 'url' => 'http://milne.com',
+));
+
+$entry->setId('4f8706cf64875-post-name');
+$entry->setTitle('4f8706cf64875 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2007:03:12 09:30:30'));
+$entry->setUpdated(new DateTime('2007:03:12 09:30:30'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'personal',
+ 2 => 'programming',
+ 3 => 'thoughts',
+ 4 => 'literature',
+ 5 => 'children',
+ 6 => 'draft',
+ 7 => 'conferences',
+ 8 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
45 test/PhlyBlog/_posts/2007/04/24-4f8706cf63d98-post-name.php
@@ -0,0 +1,45 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'custer',
+ 'name' => 'George Armstrong Custer',
+ 'email' => 'me@gacuster.com',
+ 'url' => 'http://www.gacuster.com',
+));
+
+$entry->setId('4f8706cf63d98-post-name');
+$entry->setTitle('4f8706cf63d98 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2007:04:24 14:29:29'));
+$entry->setUpdated(new DateTime('2007:04:24 14:29:29'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'personal',
+ 2 => 'programming',
+ 3 => 'thoughts',
+ 4 => 'war',
+ 5 => 'literature',
+ 6 => 'children',
+ 7 => 'draft',
+ 8 => 'conferences',
+ 9 => 'php',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
31 test/PhlyBlog/_posts/2007/06/05-4f8706cf64387-post-name.php
@@ -0,0 +1,31 @@
+<?php
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+
+$entry->setId('4f8706cf64387-post-name');
+$entry->setTitle('4f8706cf64387 Post');
+$entry->setAuthor('crazyhorse');
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2007:06:05 10:47:47'));
+$entry->setUpdated(new DateTime('2007:06:05 10:47:47'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'personal',
+ 1 => 'thoughts',
+ 2 => 'war',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
+
View
38 test/PhlyBlog/_posts/2007/06/11-4f8706cf61341-post-name.php
@@ -0,0 +1,38 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'custer',
+ 'name' => 'George Armstrong Custer',
+ 'email' => 'me@gacuster.com',
+ 'url' => 'http://www.gacuster.com',
+));
+
+$entry->setId('4f8706cf61341-post-name');
+$entry->setTitle('4f8706cf61341 Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2007:06:11 21:41:41'));
+$entry->setUpdated(new DateTime('2007:06:11 21:41:41'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'personal',
+ 1 => 'war',
+ 2 => 'literature',
+));
+
+$body =<<<'EOT'
+This is it!
+EOT;
+$entry->setBody($body);
+
+$extended =<<<'EOT'
+This is the extended portion of the entry.
+EOT;
+$entry->setExtended($extended);
+
+return $entry;
View
44 test/PhlyBlog/_posts/2007/08/10-4f8706cf6318f-post-name.php
@@ -0,0 +1,44 @@
+<?php
+use PhlyBlog\AuthorEntity;
+use PhlyBlog\EntryEntity;
+
+$entry = new EntryEntity();
+$author = new AuthorEntity();
+$author->fromArray(array (
+ 'id' => 'crazyhorse',
+ 'name' => 'Crazy Horse',
+ 'email' => 'crazyhorse@siouxnation.org',
+ 'url' => 'http://crazyhorse.siouxnation.org',
+));
+
+$entry->setId('4f8706cf6318f-post-name');
+$entry->setTitle('4f8706cf6318f Post');
+$entry->setAuthor($author);
+$entry->setDraft(false);
+$entry->setPublic(true);
+$entry->setCreated(new DateTime('2007:08:10 08:36:36'));
+$entry->setUpdated(new DateTime('2007:08:10 08:36:36'));
+$entry->setTimezone('America/Chicago');
+$entry->setTags(array (
+ 0 => 'holiday',
+ 1 => 'personal',
+ 2 => 'programming',
+ 3 => 'thoughts',
+ 4 => 'war',
+ 5 => 'children',
+ 6 => 'draft',
+ 7 => 'conferences',