<commit_before># $Id$

# Copyright (C) 2006-2007, The Perl Foundation.

package Parrot::Test::Plumhead::Phc;

# pragmata
use strict;
use warnings;

use base 'Parrot::Test::Plumhead';

# Generate output_is(), output_isnt() and output_like() in current package.
Parrot::Test::generate_languages_functions(); 

sub get_out_fn {
    my $self = shift;
    my ( $count, $options ) = @_;

    return Parrot::Test::per_test( '_php.out', $count );
}

# Use PHP on the command line
sub get_test_prog {
    my $self = shift;
    my ( $count, $options ) = @_;

    my $lang_fn = Parrot::Test::per_test( '.php', $count );

    return ("./parrot languages/plumhead/plumhead.pbc --variant=phc languages/${lang_fn}");
}

# never skip the reference implementation
sub skip_why {
    my $self = shift;
    my ($options) = @_;

    return;
}

1;<commit_msg>[Plumhead] Use plumhead_pct.pir for the 'phc' variant.<commit_after># $Id$

# Copyright (C) 2006-2007, The Perl Foundation.

package Parrot::Test::Plumhead::Phc;

# pragmata
use strict;
use warnings;

use base 'Parrot::Test::Plumhead';

# Generate output_is(), output_isnt() and output_like() in current package.
Parrot::Test::generate_languages_functions(); 

sub get_out_fn {
    my $self = shift;
    my ( $count, $options ) = @_;

    return Parrot::Test::per_test( '_php.out', $count );
}

# Use PHP on the command line
sub get_test_prog {
    my $self = shift;
    my ( $count, $options ) = @_;

    my $lang_fn = Parrot::Test::per_test( '.php', $count );

    return ("./parrot languages/plumhead/plumhead_pct.pbc --variant=phc languages/${lang_fn}");
}

# never skip the reference implementation
sub skip_why {
    my $self = shift;
    my ($options) = @_;

    return;
}

1;
{'fraction_non_alphanumeric': 0.15339918651946544, 'fraction_numerical': 0.010459035444509006, 'mean_word_length': 3.9340974212034383, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7144319', 'n_tokens_mistral': 641, 'n_tokens_neox': 608, 'n_words': 159}