From 650708de9df9039f04eda0fc150bd94e5a5b9753 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Fri, 4 Oct 2019 15:39:16 +0300 Subject: [PATCH] Fixed tests to be able run full test suite without Phalcon --- CHANGELOG.md | 2 ++ unit-tests/Extension/InternalClassesTest.php | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/unit-tests/Extension/InternalClassesTest.php b/unit-tests/Extension/InternalClassesTest.php index 6333a8666..d5caee8e5 100644 --- a/unit-tests/Extension/InternalClassesTest.php +++ b/unit-tests/Extension/InternalClassesTest.php @@ -20,12 +20,20 @@ class InternalClassesTest extends TestCase { public function testStaticMethodCall() { + if (false === class_exists(Di::class)) { + $this->markTestSkipped('Class Phalcon\Di not found'); + } + $class = new InternalClasses(); $this->assertSame(Di::getDefault(), $class->testStaticCall()); } public function testStaticPropertyFetch() { + if (false === class_exists(Query::class)) { + $this->markTestSkipped('Class Phalcon\Mvc\Model\Query not found'); + } + $class = new InternalClasses(); $this->assertSame(Query::TYPE_DELETE, $class->testStaticPropertyFetch()); }