<commit_before><?php

require_once(__DIR__.'/../bootstrap.php');

use Patchwork\Helper\RedBean as R;

$app['environ']->set('test');

/**
 * @backupGlobals disabled
 */
class PizzaTest extends PHPUnit_Framework_TestCase
{
    protected function setUp()
    {
        global $app;
        $this->app = $app;

        $this->pizza = R::dispense('pizza');
        $this->pizza->bindApp($this->app);
    }



    public function testCanCreateAPizza()
    {
        $this->assertNotNull($this->pizza);
    }



    /**
     * @expectedException Patchwork\Helper\Exception
     */
    public function testCannotSaveAnInvalidPizza()<commit_msg>Removed now useless app globalization<commit_after><?php

require_once(__DIR__.'/../bootstrap.php');

use Patchwork\Helper\RedBean as R;

$app['environ']->set('test');

/**
 * @backupGlobals disabled
 */
class PizzaTest extends PHPUnit_Framework_TestCase
{
    protected function setUp()
    {
        $this->pizza = R::dispense('pizza');
    }



    public function testCanCreateAPizza()
    {
        $this->assertNotNull($this->pizza);
    }



    /**
     * @expectedException Patchwork\Helper\Exception
     */
    public function testCannotSaveAnInvalidPizza()
{'fraction_non_alphanumeric': 0.14534883720930233, 'fraction_numerical': 0.0, 'mean_word_length': 3.1267123287671232, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '5353921', 'n_tokens_mistral': 383, 'n_tokens_neox': 367, 'n_words': 62}