initial commit
This commit is contained in:
commit
43ea4f11a8
5
.buildpath
Normal file
5
.buildpath
Normal 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
0
.gitignore
vendored
Normal file
22
.project
Normal file
22
.project
Normal 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>
|
5
.settings/org.eclipse.php.core.prefs
Normal file
5
.settings/org.eclipse.php.core.prefs
Normal 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
1
classes/PostFixtures.inc
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?php
|
6
phpunit.xml
Normal file
6
phpunit.xml
Normal 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
41
post-fixtures.php
Normal 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');
|
1
test/PostFixturesTest.php
Normal file
1
test/PostFixturesTest.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?php
|
Loading…
Reference in New Issue
Block a user