forked from propelorm/Propel2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c63480f
commit 56cef03
Showing
542 changed files
with
5,132 additions
and
5,150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.