Skip to content

Instantly share code, notes, and snippets.

View FabioBatSilva's full-sized avatar

Fabio Silva FabioBatSilva

View GitHub Profile
[user]
name = username
email = [email protected]
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
@FabioBatSilva
FabioBatSilva / doctrine-phpunit.xhprof.xml
Created March 15, 2013 20:20
doctrine-phpunit.xml.xhprof
<?xml version="1.0" encoding="UTF-8"?>
<!--
Use this configuration file as a template to run the tests against any dbms.
Procedure:
1) Save a copy of this file with a name of your chosing. It doesn't matter
where you place it as long as you know where it is.
i.e. "mysqlconf.xml" (It needs the ending .xml).
2) Edit the file and fill in your settings (database name, type, username, etc.)
Just change the "value"s, not the names of the var elements.
3) To run the tests against the database type the following from within the
@FabioBatSilva
FabioBatSilva / DirectionEnum.php
Created August 6, 2012 15:49
Type-safe enumeration class.
<?php
class DirectionEnum extends Enum
{
const NORTH = 'NORTH';
const SOUTH = 'SOUTH';
const EAST = 'EAST';
const WEST = 'WEST';
/**
* @return boolean
@FabioBatSilva
FabioBatSilva / doctrine-mapping.xsd
Created February 2, 2012 23:51
doctrine-mapping.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:orm="http://doctrine-project.org/schemas/orm/doctrine-mapping"
elementFormDefault="qualified">
<xs:annotation>
<xs:documentation><![CDATA[
This is the XML Schema for the object/relational