diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 5968e6c..97fa412 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -5,6 +5,7 @@ jobs: phpstan: name: PHPStan runs-on: ubuntu-24.04 + if: false # disable for now, for existing code - very out of date so fails many checks steps: - name: Checkout code @@ -27,7 +28,7 @@ jobs: psalm: name: Psalm runs-on: ubuntu-24.04 - if: false # disable for now, for existing code + if: false # disable for now, for existing code - very out of date so fails many checks steps: - name: Checkout code uses: actions/checkout@v2 diff --git a/test/ScopeFactoryTest.php b/test/ScopeFactoryTest.php index b0cf901..f679957 100644 --- a/test/ScopeFactoryTest.php +++ b/test/ScopeFactoryTest.php @@ -12,7 +12,7 @@ class ScopeFactoryTest extends TestCase { public function testItImplementsScopeFactoryInterface() { - $this->assertInstanceOf('League\\Fractal\\ScopeFactoryInterface', $this->createSut()); + $this->assertInstanceOf(\PHPOpenSourceSaver\Fractal\ScopeFactoryInterface::class, $this->createSut()); } public function testItCreatesScopes() @@ -25,7 +25,7 @@ public function testItCreatesScopes() $scope = $sut->createScopeFor($manager, $resource, $scopeIdentifier); - $this->assertInstanceOf('League\\Fractal\\Scope', $scope); + $this->assertInstanceOf(\PHPOpenSourceSaver\Fractal\Scope::class, $scope); $this->assertSame($resource, $scope->getResource()); $this->assertSame($scopeIdentifier, $scope->getScopeIdentifier()); } @@ -50,7 +50,7 @@ public function testItCreatesScopesWithParent() $sut = $this->createSut(); $scope = $sut->createChildScopeFor($manager, $scope, $resource, $scopeIdentifier); - $this->assertInstanceOf('League\\Fractal\\Scope', $scope); + $this->assertInstanceOf('PHPOpenSourceSaver\\Fractal\\Scope', $scope); $this->assertSame($resource, $scope->getResource()); $this->assertSame($scopeIdentifier, $scope->getScopeIdentifier()); $this->assertEquals($expectedParentScopes, $scope->getParentScopes()); @@ -69,7 +69,7 @@ private function createSut() */ private function createManager() { - return $this->getMockBuilder('League\\Fractal\\Manager')->getMock(); + return $this->getMockBuilder('PHPOpenSourceSaver\\Fractal\\Manager')->getMock(); } /** @@ -77,6 +77,6 @@ private function createManager() */ private function createResource() { - return $this->getMockBuilder('League\\Fractal\\Resource\\ResourceInterface')->getMock(); + return $this->getMockBuilder('PHPOpenSourceSaver\\Fractal\\Resource\\ResourceInterface')->getMock(); } }