Skip to content

Commit

Permalink
Introducing Propel2
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand committed Oct 16, 2011
1 parent c63480f commit 56cef03
Show file tree
Hide file tree
Showing 542 changed files with 5,132 additions and 5,150 deletions.
13 changes: 7 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
test/fixtures/bookstore-packaged/build/
test/fixtures/bookstore/build/
test/fixtures/namespaced/build/
test/fixtures/nestedset/build/
test/fixtures/schemas/build/
test/fixtures/treetest/build/
tests/fixtures/bookstore-packaged/build/
tests/fixtures/bookstore/build/
tests/fixtures/namespaced/build/
tests/fixtures/nestedset/build/
tests/fixtures/schemas/build/
tests/Fixtures/treetest/build/
vendor/
186 changes: 0 additions & 186 deletions CHANGELOG

This file was deleted.

24 changes: 21 additions & 3 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
I N S T A L L I N G P R O P E L
==================================
# Propel2 #

See: http://www.propelorm.org/documentation/01-installation.html
## Installation ##

...


## Running unit tests ##

To run unit tests, you'll have to install vendors:

./bin/install_vendors.sh

Once done, build fixtures:

./tests/reset_tests.sh

Now you can run unit tests for both `Generator/` and `Runtime/`:

phpunit -c phpunit.xml.dist tests/Propel/Tests/Generator/

phpunit -c phpunit.xml.dist tests/Propel/Tests/Runtime/
20 changes: 20 additions & 0 deletions autoload.php.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

if (!class_exists('\Symfony\Component\ClassLoader\UniversalClassLoader')) {
require_once __DIR__ . '/vendor/Symfony/Component/ClassLoader/UniversalClassLoader.php';
}

$loader = new \Symfony\Component\ClassLoader\UniversalClassLoader();
$loader->registerNamespaces(array(
'Foo' => __DIR__ . '/tests/Fixtures/namespaced/build/classes',
'Baz' => __DIR__ . '/tests/Fixtures/namespaced/build/classes',
'Propel\Tests' => array(
__DIR__ . '/tests',
__DIR__ . '/tests/Fixtures/bookstore/build/classes',
__DIR__ . '/tests/Fixtures/schemas/build/classes',
),
'Propel\Runtime' => __DIR__ . '/src',
'Propel\Generator' => __DIR__ . '/src',
'Symfony\Component' => __DIR__ . '/vendor',
));
$loader->register();
4 changes: 4 additions & 0 deletions bin/install_vendors.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

git clone https://github.com/symfony/ClassLoader.git vendor/Symfony/Component/ClassLoader
git clone https://github.com/symfony/Yaml.git vendor/Symfony/Component/Yaml
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{
"name": "Propel",
"description": "Propel is an open-source Object-Relational Mapping (ORM) for PHP5.",
"name": "propel/Propel2",
"type": "library",
"description": "Propel2 is an open-source Object-Relational Mapping (ORM) for PHP 5.3",
"keywords": ["ORM"],
"homepage": "http://www.propelorm.org/",
"version": "1.6.3-dev",
"version": "2.0.0-dev",
"license": "MIT",
"authors": [
{
"name": "William Durand",
"email": "william.durand1@gmail.com",
"homepage": "http://www.willdurand.fr"
"email": "william.durand1@gmail.com"
}
],
"require": {
"php": ">=5.2.4"
"php": ">=5.3.2",
"symfony/class-loader": ">=2.1",
}
}
25 changes: 25 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="tests/bootstrap.php"
>
<testsuites>
<testsuite name="Propel2 Test Suite">
<directory>./tests/Propel/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>./src/Propel/</directory>
</whitelist>
</filter>
</phpunit>
Loading

0 comments on commit 56cef03

Please sign in to comment.