//assert_options(ASSERT_ACTIVE, 1); //assert_options(ASSERT_WARNING, 1); //assert_options(ASSERT_QUIET_EVAL, 1); // Create a handler function function my_assert_handler($file, $line, $code) { echo "<hr>Assertion Failed:\r\n File '{$file}'<br />\r\n Line '{$line}'<br />\r\n Code '{$code}'<br /><hr />"; } // Set up the callback assert_options(ASSERT_CALLBACK, 'my_assert_handler'); // =============================================================== // EMPIEZA CODIGO DEL TEST // =============================================================== YuppLoader::load("tests.model.m010", "M010_Persona"); // Sin esto al hacer reload no carga DatabaseMySQL YuppLoader::refresh(); class ModelM010Test { public function runTest() { $this->test1(); $this->test2(); $this->test3(); } private function test1() { PersistentManager::getInstance()->generateAll(); echo YuppConventions::tableName('M010_Persona') . "<br/>"; /** * Resultado> *