public function thereArePosts(TableNode $table)
    {
        foreach ($table->getHash() as $postData) {
            if (!is_int(wp_insert_post($postData))) {
                throw new \InvalidArgumentException("Invalid post information schema.");
            }
        }
    }
public function thereArePosts(TableNode $table)
    {
        foreach ($table->getHash() as $postData) {
            if (!is_int(wp_insert_post($postData))) {
                throw new \InvalidArgumentException("Invalid post information schema.");
            }
        }
    }
public function thereArePosts ( TableNode $ table ) { foreach ( $ table -> getHash ( ) as $ postData ) { if ( ! is_int ( wp_insert_post ( $ postData ) ) ) { throw new \ InvalidArgumentException ( "Invalid post information schema." ) ; } } }
Add these posts to this wordpress installation

@see wp_insert_post

@Given /^there are posts$/
Add these posts to this wordpress installation