initial commit

This commit is contained in:
John Bintz 2009-11-22 15:35:39 -05:00
commit 43ea4f11a8
8 changed files with 81 additions and 0 deletions

5
.buildpath Normal file
View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<buildpath>
<buildpathentry kind="src" path=""/>
<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
</buildpath>

0
.gitignore vendored Normal file
View File

22
.project Normal file
View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Post Fixtures</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.dltk.core.scriptbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.php.core.PHPNature</nature>
</natures>
</projectDescription>

View File

@ -0,0 +1,5 @@
#Sun Nov 22 15:05:15 EST 2009
eclipse.preferences.version=1
include_path=0;/Post Fixtures
phpVersion=php4
use_asp_tags_as_php=false

1
classes/PostFixtures.inc Normal file
View File

@ -0,0 +1 @@
<?php

6
phpunit.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true">
<php>
<ini name="error_reporting" value="30719" />
</php>
</phpunit>

41
post-fixtures.php Normal file
View File

@ -0,0 +1,41 @@
<?php
/*
Plugin Name: Post Fixtures
Plugin URI: http://www.coswellproductions.com/wordpress/wordpress-plugins/
Description: Tear down and build up well crafted posts, categories, meta data, and other WordPress data in a test environment.
Version: 0.1
Author: John Bintz
Author URI: http://www.coswellproductions.com/wordpress/
Copyright 2009 John Bintz (email : john@coswellproductions.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
function __post_fixtures_plugins_loaded() {
if (version_compare(PHP_VERSION, '5.0.0') === 1) {
require_once('classes/PostFixtures.inc');
} else {
add_action('admin_notices', '__post_fixtures_admin_notices');
}
}
function __post_fixtures_admin_notices() {
deactivate_plugins(plugin_basename(__FILE__)); ?>
<div class="updated fade"><p><?php _e('You need to be running at least PHP 5 to use Post Fixtures. Plugin <strong>not</strong> activated.') ?></p></div>
<?php }
add_action('plugins_loaded', '__post_fixtures_plugins_loaded');

View File

@ -0,0 +1 @@
<?php