From d166691126d7d0d109470f7a59d5866c4c15e4c6 Mon Sep 17 00:00:00 2001 From: Oskar Truffer Date: Tue, 23 Dec 2014 10:45:31 +0100 Subject: [PATCH 1/6] failing test. --- Tests/ObjectCacheTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/ObjectCacheTest.php b/Tests/ObjectCacheTest.php index 181b15f..ee472ca 100644 --- a/Tests/ObjectCacheTest.php +++ b/Tests/ObjectCacheTest.php @@ -36,6 +36,7 @@ public function setUp() { public function testTableExistant() { $this->assertTrue($this->pdo->tableExists($this->table_name)); + $this->assertTrue(false); } @@ -52,4 +53,4 @@ public function chacheTestsOne() { } } -?> \ No newline at end of file +?> From 64020705cd2c368f0f115d3ed90a1d9df90b41ff Mon Sep 17 00:00:00 2001 From: Oskar Truffer Date: Tue, 23 Dec 2014 10:51:21 +0100 Subject: [PATCH 2/6] fixed test. --- Tests/ObjectCacheTest.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Tests/ObjectCacheTest.php b/Tests/ObjectCacheTest.php index ee472ca..52f3157 100644 --- a/Tests/ObjectCacheTest.php +++ b/Tests/ObjectCacheTest.php @@ -36,7 +36,6 @@ public function setUp() { public function testTableExistant() { $this->assertTrue($this->pdo->tableExists($this->table_name)); - $this->assertTrue(false); } From 3cb52574d74b2467aa2a872e11715a64ee784321 Mon Sep 17 00:00:00 2001 From: Oskar Truffer Date: Tue, 23 Dec 2014 11:06:21 +0100 Subject: [PATCH 3/6] delted a comment line --- Tests/ObjectCacheTest.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Tests/ObjectCacheTest.php b/Tests/ObjectCacheTest.php index 52f3157..6036e78 100644 --- a/Tests/ObjectCacheTest.php +++ b/Tests/ObjectCacheTest.php @@ -28,7 +28,6 @@ public function setUp() { PHPUnit_Framework_Error_Notice::$enabled = false; arUnitTestRecord::installDB(); $arUnitTestRecord = new arUnitTestRecord(); - // $this->table_name = arUnitTestRecord::returnDbTableName(); $this->table_name = $arUnitTestRecord->getConnectorContainerName(); $this->pdo = arConnectorPdoDB::getConnector(); } From 0a3f59606f82c79ccbe57a9a96b7d874bac1480d Mon Sep 17 00:00:00 2001 From: Oskar Truffer Date: Tue, 23 Dec 2014 11:30:04 +0100 Subject: [PATCH 4/6] added php unit test config file. --- Tests/PhpUnitConfig.xml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Tests/PhpUnitConfig.xml diff --git a/Tests/PhpUnitConfig.xml b/Tests/PhpUnitConfig.xml new file mode 100644 index 0000000..27914fd --- /dev/null +++ b/Tests/PhpUnitConfig.xml @@ -0,0 +1,5 @@ + + + Tests/ + + From c86093534d5e35149307f28092d20b02f6c727fa Mon Sep 17 00:00:00 2001 From: Oskar Truffer Date: Tue, 23 Dec 2014 11:40:38 +0100 Subject: [PATCH 5/6] Test config file now valid --- Tests/PhpUnitConfig.xml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Tests/PhpUnitConfig.xml b/Tests/PhpUnitConfig.xml index 27914fd..0f26052 100644 --- a/Tests/PhpUnitConfig.xml +++ b/Tests/PhpUnitConfig.xml @@ -1,5 +1,7 @@ - - - Tests/ - - + + + + ./ + + + From 1d61d39aa081a81f31516e9a56cbd00437bd8a3a Mon Sep 17 00:00:00 2001 From: Oskar Truffer Date: Tue, 23 Dec 2014 14:26:22 +0100 Subject: [PATCH 6/6] Deleted Travis as now TeamCity used as CI --- .travis.yml | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 297a4fe..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: php -php: - - 5.5 - - 5.4 - - hhvm -install: - - composer install -services: mysql -before_script: - - mysql -e 'CREATE DATABASE test_db;' -script: - - phpunit Tests