public function assertDbQuery($sqlPart, $message = null) { $queryProfiles = $this->_profiler->getQueryProfiles(); $this->_test->assertTrue(is_array($queryProfiles), "No database queries were made."); $ranQuery = false; if (is_array($sqlPart)) { $query = $sqlPart[0]; $params = $sqlPart[1]; } else { $query = $sqlPart; } foreach ($queryProfiles as $profile) { if (strpos($profile->getQuery(), $query) !== false) { if (isset($params) && $profile->getQueryParams() == $params) { $ranQuery = true; break; } else { if (!isset($params)) { $ranQuery = true; break; } } } } $this->_test->assertTrue($ranQuery, $message . PHP_EOL . "Should have run SQL query containing '{$query}'." . (isset($params) ? PHP_EOL . "Should have been passed parameters: " . print_r($params, true) : '')); }
/** * {@inheritDoc} */ public function receiveUpdate(SubjectInterface $subject) { $this->order = self::$counter++; $this->subject = $subject; if ($this->double) { $subject->notifyObservers(); } if ($this->test) { $this->test->assertTrue(Property::get($subject, 'updating'), 'The subject should be updating.'); } if ($this->interrupt) { $this->reason = new ReasonException('Testing interruption.'); $subject->interruptUpdate($this->reason); } }
/** * @test */ public function expectedValueIsValid() { $enum = $this->getEnumClass(); foreach ($this->getExpectedValues() as $value) { parent::assertTrue($enum::isValid($value)); } }
public static function check(\PHPUnit_Framework_TestCase $test, SSODescriptor $descriptor, array $expectedNameIdFormats) { $test->assertCount(count($expectedNameIdFormats), $descriptor->getAllNameIDFormats()); foreach ($expectedNameIdFormats as $nameIdFormat) { $test->assertTrue($descriptor->hasNameIDFormat($nameIdFormat)); } }
public function testSignSoapMessage() { $expected = '<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wns1="urn:hello-world:1.0"><SOAP-ENV:Body><wns1:sayHello xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wns1="urn:hello-world:1.0"><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></ds:CanonicalizationMethod> <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod> <ds:Reference URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"></ds:Transform></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod><ds:DigestValue>QG06QpnB5HBcTxoj9sP4lwgr5fs=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>KbCRtraU6vpqojaPm2ArAsWR/2xBqP0J7nplkXUmQpQkoFWiawnIW8pHVp0RWddlyP9TYBT0f10hN75oxkTvtmHQrxwAC6rjngr+872cHLKnpSZlfUVzAd2QSYR6Gbgk/lSKzZInwe9IEhexQjQ1qDldqu62D8imAyllCtg8bCXLfyHFjixLk19IkJoDjDula1PMLPLpEDuSy934jHSiy3PdA1HwNdlw/1oAqnlcrIA152ywAuPdaFMGgV5JqRPBH5y/wHQ0+4g1VlF7pttigFQcrXLEEZUrz2hdkVb71mZNZFlKIZ70Mdh9WjdgmsMpf1d41w9oOKtrzv46roMmIA==</ds:SignatureValue> <ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIEVDCCAzygAwIBAgIJAPTrkMJbCOr1MA0GCSqGSIb3DQEBBQUAMHkxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIEwVNYWluZTESMBAGA1UEBxMJTGltaW5ndG9uMR8wHQYDVQQKExZ4bWxzZWNsaWJzLnBocCBMaWJyYXJ5MSUwIwYDVQQDExx4bWxzZWNsaWJzL3d3dy5jZGF0YXpvbmUub3JnMB4XDTA4MDcwNzIwMjIzMVoXDTE4MDcwNTIwMjIzMVoweTELMAkGA1UEBhMCVVMxDjAMBgNVBAgTBU1haW5lMRIwEAYDVQQHEwlMaW1pbmd0b24xHzAdBgNVBAoTFnhtbHNlY2xpYnMucGhwIExpYnJhcnkxJTAjBgNVBAMTHHhtbHNlY2xpYnMvd3d3LmNkYXRhem9uZS5vcmcwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDttdMyM5ISVD1Uz+BHAPrxVJ6N1eZonfg3DMvZVT0Zy64+qcXj8zuHC6lolDsfGnD8LUttraQ7qCL+bHKps+hjAhCRdx5Wcn4iDrlFpxFL7INnr6vekzsCQ45BPUrvksF9FKa7yX4iSDButmPfoT14gPnIuSe8Y5UeGe6Lk6sF0WgHyL+JmxOu377Kuhah2pXZ1+z7V4JIlNgemJtKlqrvgGeuE9TagfGHUL9BuZK5fUx/RSDUjqxUeKU3fft9fGIAZl0dduitC2Otv4dr1gxLrUmI+ZZ75FmtfKQT7SmS92QVI2B5WAPlL1bnbvhkZiyw7nFE+Q/wGJ2myE4RIFjdAgMBAAGjgd4wgdswHQYDVR0OBBYEFEC5iG0uGXLpQG/zMj/4TuDWfTpHMIGrBgNVHSMEgaMwgaCAFEC5iG0uGXLpQG/zMj/4TuDWfTpHoX2kezB5MQswCQYDVQQGEwJVUzEOMAwGA1UECBMFTWFpbmUxEjAQBgNVBAcTCUxpbWluZ3RvbjEfMB0GA1UEChMWeG1sc2VjbGlicy5waHAgTGlicmFyeTElMCMGA1UEAxMceG1sc2VjbGlicy93d3cuY2RhdGF6b25lLm9yZ4IJAPTrkMJbCOr1MAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBACmSKrte07VrGB8dtrN5mrt28ILickQjguu46h6vChgQ4YfIAoA1KWNsZJUuuIzTDjE5xz2hsW37CI0yrNesv2ho2hhP+fIaxCGmcwLYXL80UaPRglYk5+wPWFOt3QFAVoEgwjLX9+y+c2Gu7xLgHAFZVRjQ5hhKT0Nj3vhnt0k8LcognNl1wKuWda7VL4tODp/2IOXr5o5v/OL3UesGfeWfvr8LVmMc5f7/vLAu1+2Yk+/C9/EZyf3BDZQ4z8ae/iwqprCTUIEjhUDcq4+0YN2EIw6suGE2FtWlsIywNErmoOhdrmntU61n3nFCQBi7QDUnZrAFrl4/bmk3eRJ00nE=</ds:X509Certificate></ds:X509Data></ds:KeyInfo></ds:Signature></wns1:sayHello></SOAP-ENV:Body></SOAP-ENV:Envelope> '; try { $this->client->__call('sayHello', []); } catch (\Exception $e) { // Ignore } $lastRequest = $this->client->__getLastRequest(); TestCase::assertEquals($expected, $lastRequest); $dom = new DOMDocument(); $dom->loadXML($lastRequest); $body = $dom->getElementsByTagNameNS($dom->documentElement->namespaceURI, 'Body')->item(0); $firstElement = $body->firstChild; // Check Signature $xmlDSigAdapter = $this->client->getXmlDSigAdapter(); $newData = new DOMDocument(); $newData->loadXML($firstElement->C14N()); TestCase::assertTrue($xmlDSigAdapter->verify($newData)); }
public static function assertTrue($condition, $msg = null) { if ($condition instanceof Net_LDAP2_Error) { self::fail('Error: ' . $condition->getMessage()); } return parent::assertTrue($condition, $msg); }
/** * Test API response status * * @param Response $response * @param int $statusCode * @param string $contentType */ public static function assertJsonResponse($response, $statusCode = 201, $contentType = 'application/json') { \PHPUnit_Framework_TestCase::assertEquals($statusCode, $response->getStatusCode(), $response->getContent()); if ($contentType !== '') { \PHPUnit_Framework_TestCase::assertTrue($response->headers->contains('Content-Type', $contentType), $response->headers); } }
public function doInspect() { $params = $this->getFilterParameter(); $this->testCase->assertEquals(array('foo', 'bar'), $params->getFields()); $this->testCase->assertEquals('2014-01-26', $params->getUpdatedSince()->format('Y-m-d')); $this->testCase->assertEquals(8, $params->getCount()); $this->testCase->assertEquals('id', $params->getFilterBy()); $this->testCase->assertEquals('equals', $params->getFilterOp()); $this->testCase->assertEquals('12', $params->getFilterValue()); $this->testCase->assertEquals('id', $params->getSortBy()); $this->testCase->assertEquals(Sql::SORT_DESC, $params->getSortOrder()); $this->testCase->assertEquals(4, $params->getStartIndex()); $condition = FilterParameter::getCondition($params); $this->testCase->assertEquals(array(array('id', '=', '12', 'AND', 1), array('date', '>', '2014-01-26 00:00:00', 'AND', 1)), $condition->toArray()); // check writer $this->testCase->assertTrue($this->isWriter('PSX\\Data\\Writer\\Json')); }
/** * @param array $values * * @test * @dataProvider getInstanceValues */ public function containsValues($values) { $collection = $this->getCollectionInstance($values); parent::assertCount(count($values), $collection); foreach ($collection as $value) { parent::assertTrue($collection->contains($value)); } }
/** * Overwritten lime_test method * * @see lime_test#fail() */ public function fail($message = '') { // $this->testCase->fail could not be called here, otherwise // the ugly exception // "Exception thrown without a stack frame in Unknown on line 0" will be thrown // $this->testCase->fail( $message ); // @TODO find a solution to be able calling the fail method directly $this->testCase->assertTrue(false, 'FAIL: ' . $message); }
/** * Checks an element has a class * * @Then /^"([^"]*)" element should have class "([^"]*)"$/ * * @return void */ public function elementShouldHaveClass($selector, $class) { $session = $this->getSession(); $page = $session->getPage(); $element = $page->find('css', $selector); if (!$element) { throw new ElementNotFoundException($session, 'Element "' . $selector . '"'); } \PHPUnit_Framework_TestCase::assertTrue($element->hasClass($class)); }
public function it_generates_a_status_object() { $config = new Config(); $config->load(SpecHelper::rootPath() . 'src/BackbonePhp/Application/config/models.json'); $this->config = $config; $request = new Request(); $response = new Response(); $route = (object) []; $this->handleStatusRequest($request, $response, $route)->shouldReturn($this); Assertions::assertEquals('application/json', $response->getHeader('Content-Type'), 'should set content type to JSON'); Assertions::assertEquals('ok', $response->getBody()->status, 'should set status field'); Assertions::assertTrue(is_int($response->getBody()->timestamp), 'should set timestamp field'); }
public function test() { $routerClass = $this->_routerClass; $routerInstance = new $routerClass(); if (!isset($this->_expectModule)) { $this->_expectModule = $routerInstance->getDefaultModuleName(); } if (!isset($this->_expectController)) { $this->_expectController = $routerInstance->getDefaultControllerName(); } if (!isset($this->_expectAction)) { $this->_expectAction = $routerInstance->getDefaultActionName(); } $postfix = ""; if (isset($this->_requiredModule)) { $this->_router->requireModule($this->_requiredModule); if ($this->_requiredModule) { $postfix .= "(module '{$this->_requiredModule}' required)"; } else { $postfix .= '(module required)'; } } if (isset($this->_requiredController)) { $this->_router->requireController($this->_requiredController); if ($this->_requiredController) { $postfix .= "(controller '{$this->_requiredController}' required)"; } else { $postfix .= '(controller required)'; } } if (isset($this->_requiredAction)) { $this->_router->requireAction($this->_requiredAction); if ($this->_requiredAction) { $postfix .= "(action '{$this->_requiredAction}' required)"; } else { $postfix .= '(action required)'; } } $routable = $this->_router->route($this->_uri); if ($this->_isRoutable) { $this->_test->assertTrue($routable, "{$this->_routerClass} router should be able to route '{$this->_uri}' " . $postfix); } else { $this->_test->assertFalse($routable, "{$this->_routerClass} router should not be able to route '{$this->_uri}' " . $postfix); return; } $this->_test->assertEquals($this->_expectModule, $this->_router->getModuleName(), "{$this->_routerClass} routes {$this->_uri} to module '{$this->_expectModule}'"); $this->_test->assertEquals($this->_expectController, $this->_router->getControllerName(), "{$this->_routerClass} routes {$this->_uri} to controller '{$this->_expectController}'"); $this->_test->assertEquals($this->_expectAction, $this->_router->getActionName(), "{$this->_routerClass} routes {$this->_uri} to action '{$this->_expectAction}'"); $this->_test->assertEquals($this->_expectArguments, $this->_router->getActionArguments(), "{$this->_routerClass} gets " . var_export($this->_expectArguments, true) . " from uri '{$this->_uri}'"); }
/** * @return void */ protected function doStrictMethodCheck() { if ($this->isStatic()) { $errMsg = "#{$this->methodName} is an instance method on the class {$this->className}, but you expected it to be static."; } else { $errMsg = "#{$this->methodName} is a static method on the class {$this->className}, but you expected it to be an instance method."; } try { $reflectionMethod = new \ReflectionMethod($this->className, $this->methodName); $this->testCase->assertTrue($reflectionMethod->isStatic() == $this->isStatic(), $errMsg); $this->testCase->assertFalse($reflectionMethod->isPrivate(), "#{$this->methodName} is a private method on {$this->className}, but you cannot mock a private method."); } catch (\ReflectionException $e) { $necessaryMagicMethod = $this->isStatic() ? '__callStatic' : '__call'; $this->testCase->assertTrue(method_exists($this->className, $necessaryMagicMethod), "The method #{$this->methodName} does not exist on the class {$this->className}"); } }
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @category tests * @package log4php * @subpackage appenders * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 * @version SVN: $Id$ * @link http://logging.apache.org/log4php */ function errorHandler($errno, $errstr, $errfile, $errline) { switch ($errno) { case E_USER_ERROR: PHPUnit_Framework_TestCase::assertEquals($errstr, "ERROR - testmessage" . PHP_EOL); break; case E_USER_WARNING: PHPUnit_Framework_TestCase::assertEquals($errstr, "WARN - testmessage" . PHP_EOL); break; case E_USER_NOTICE: PHPUnit_Framework_TestCase::assertEquals($errstr, "DEBUG - testmessage" . PHP_EOL); break; default: PHPUnit_Framework_TestCase::assertTrue(false); } }
public function testFlagPropertyAsRequiredFromDefinitionSuccess() { /** @var \Swagger\Annotations\Definition $definition */ $definition = $this->getMockBuilder(\Swagger\Annotations\Definition::class)->disableOriginalConstructor()->getMock(); $definition->definition = 'TestScheme'; $definition->required = ['property1', 'property4']; $definition->properties = [$property1 = $this->getMockProperty('property1', 'string'), $property2 = $this->getMockProperty('property2', 'string'), $property3 = $this->getMockProperty('property3', 'string'), $property4 = $this->getMockProperty('property4', 'string'), $property5 = $this->getMockProperty('property5', 'string'), $property6 = $this->getMockProperty('property6', 'string')]; $swaggerWrapper = $this->getSwaggerWrapper(); $swaggerWrapper->flagPropertyAsRequiredFromDefinition($definition); parent::assertTrue($property1->required); parent::assertTrue($property4->required); parent::assertEquals(false, $property2->required); parent::assertEquals(false, $property3->required); parent::assertEquals(false, $property5->required); parent::assertEquals(false, $property6->required); }
public function assertExist(ResourceDOInterface $resourceDO) { $resourceDO = clone $resourceDO; $resourceDO->setName('another'); $filePath = $resourceDO->getFilePath(); $this->testCase->assertTrue($this->filesystem->has($filePath)); $resourceDO = clone $resourceDO; $resourceDO->setNameAlternative('another'); $filePath = $resourceDO->getFilePath(); $this->testCase->assertTrue($this->filesystem->has($filePath)); $resourceDO = clone $resourceDO; $resourceDO->setBaseDirectory('another'); $filePath = $resourceDO->getFilePath(); $this->testCase->assertTrue($this->filesystem->has($filePath)); $resourceDO = clone $resourceDO; $resourceDO->setNamespace('another'); $filePath = $resourceDO->getFilePath(); $this->testCase->assertTrue($this->filesystem->has($filePath)); $resourceDO = clone $resourceDO; $resourceDO->setType('wrong-type'); $filePath = $resourceDO->getFilePath(); $this->testCase->assertTrue($this->filesystem->has($filePath)); }
public static function assertMatches($pattern, $string) { return parent::assertTrue(preg_match('/' . str_replace('/', '\\/', $pattern) . '/', $string) > 0, $string); }
static function assertTrue($actual, $string = '') { parent::assertTrue((bool) $actual, $string); }
public function assert() { $this->getTestCase()->assertElementExists($this->selector, $this->by); \PHPUnit_Framework_TestCase::assertTrue($this->webDriver->{$this->by}($this->selector)->isDisplayed(), sprintf('The element: %s, is displayed and it should not have been', $this->selector)); }
/** * Assert response content type equals * * @param Response $response * @param string $contentType */ public static function assertResponseContentTypeEquals(Response $response, $contentType) { \PHPUnit_Framework_TestCase::assertTrue($response->headers->contains('Content-Type', $contentType), $response->headers); }
public function test_empty_delete_payload() { $this->curl->expects($this->once())->method('exec')->will($this->returnCallback(function () { return array('http_status_code' => 200, 'body' => 'response+payload', 'headers' => array()); })); $request = new \Communique\RESTClientRequest('DELETE', 'https://domain.com/users', array(), array()); $this->http_client->request($request); PHPUnit_Framework_TestCase::assertTrue(array_key_exists(CURLOPT_CUSTOMREQUEST, $this->_curlopts)); PHPUnit_Framework_TestCase::assertEquals($this->_curlopts[CURLOPT_CUSTOMREQUEST], 'DELETE'); PHPUnit_Framework_TestCase::assertTrue(array_key_exists(CURLOPT_URL, $this->_curlopts)); PHPUnit_Framework_TestCase::assertEquals($this->_curlopts[CURLOPT_URL], 'https://domain.com/users'); PHPUnit_Framework_TestCase::assertTrue(array_key_exists(CURLOPT_HTTPHEADER, $this->_curlopts)); PHPUnit_Framework_TestCase::assertEquals($this->_curlopts[CURLOPT_HTTPHEADER], array()); }
/** * @deprecated since 2.3 * @static * @param mixed $actual * @param string $messages * @return void */ public static function assertTrue($actual, $messages = '') { parent::assertTrue((bool) $actual, $messages); }
public function isInstanceOf($className, $message = null) { $actual = @get_class($this->data); \PHPUnit_Framework_TestCase::assertTrue($this->data instanceof $className, " {$actual} was not instance of {$className} "); return $this; }
/** * @param \PHPUnit_Framework_TestCase $test * @param CriteriaSet $criteriaSet * @param string $class * @param string $getter * @param string $value */ public static function assertCriteria(\PHPUnit_Framework_TestCase $test, CriteriaSet $criteriaSet, $class, $getter, $value) { $test->assertTrue($criteriaSet->has($class)); $criteria = $criteriaSet->getSingle($class); if ($getter) { $test->assertEquals($value, $criteria->{$getter}()); } }
public static function assertTrue($a) { return parent::assertTrue($a, debug_backtrace()[1]['function']); }
/** * @Then I should see email is invaid error message text in the :arg1 element */ public function iShouldSeeEmailIsInvaidErrorMessageTextInTheElement($locator) { PHPUnit_Framework_TestCase::assertTrue(strpos($this->getTextByXpath($locator), 'The email address ' . TestData::$formData['esu_strip_email'] . ' is not valid.') !== false, 'can not see error message in the ' . $locator . ' element'); }
/** * Run the tests on all available fields and communicate the results to * PHPUnit using assertions. * * @param PHPUnit $phpUnit */ public function runInPhpUnit(PHPUnit $phpUnit) { foreach ($this->run() as $id => $results) { $phpUnit->assertTrue($results['ASC']['success'], $results['ASC']['message']); $phpUnit->assertTrue($results['DESC']['success'], $results['DESC']['message']); } }
/** * Overwritten lime_test method * * @see lime_test#pass() */ public function pass($message = '') { $this->testCase->assertTrue(true, $message); return true; }
public function doInspect() { // get uri fragments $this->testCase->assertEquals(null, $this->getUriFragment('foo')); // set response code $this->setResponseCode(200); $this->testCase->assertEquals(200, $this->response->getStatusCode()); // set header $this->setHeader('Content-Type', 'application/xml'); $this->testCase->assertEquals('application/xml', $this->response->getHeader('Content-Type')); // get method $this->testCase->assertEquals('POST', $this->getMethod()); // get uri $this->testCase->assertInstanceOf('PSX\\Uri', $this->getUri()); // get header $this->testCase->assertEquals(null, $this->getHeader('foo')); // has header $this->testCase->assertEquals(false, $this->hasHeader('foo')); // get parameter $this->testCase->assertEquals('bar', $this->getParameter('foo')); $this->testCase->assertEquals('bar', $this->getParameter('foo', Validate::TYPE_STRING)); $this->testCase->assertEquals('bar', $this->getParameter('foo', Validate::TYPE_STRING, array(new Filter\Alnum()))); $this->testCase->assertEquals('bar', $this->getParameter('foo', Validate::TYPE_STRING, array(), 'Foo')); $this->testCase->assertEquals('bar', $this->getParameter('foo', Validate::TYPE_STRING, array(), 'Foo', true)); // get body $data = new \stdClass(); $data->foo = 'bar'; $data->bar = new \stdClass(); $data->bar->foo = 'nested'; $data->entries = []; $data->entries[0] = new \stdClass(); $data->entries[0]->title = 'bar'; $data->entries[1] = new \stdClass(); $data->entries[1]->title = 'foo'; $this->testCase->assertEquals($data, $this->getBody()); $this->testCase->assertEquals($data, $this->getBody(ReaderInterface::JSON)); // accessor $this->testCase->assertEquals('bar', $this->getAccessor()->get('foo')); $this->testCase->assertEquals('nested', $this->getAccessor()->get('bar.foo')); $this->testCase->assertEquals('bar', $this->getAccessor()->get('entries.0.title')); $this->testCase->assertEquals('foo', $this->getAccessor()->get('entries.1.title')); // import $record = new Record('foo', array('foo' => null)); $this->testCase->assertInstanceOf('PSX\\Data\\Record', $this->import($record)); $this->testCase->assertEquals('bar', $record->getFoo()); // set response $record = new Record('foo', array('bar' => 'foo')); $this->setBody($record); // is writer $this->testCase->assertTrue($this->isWriter('PSX\\Data\\Writer\\Json')); // is reader $this->testCase->assertTrue($this->isReader('PSX\\Data\\Reader\\Json')); // get supported writer $this->testCase->assertEquals(null, $this->getSupportedWriter()); // test properties $this->testCase->assertInstanceOf('PSX\\Loader\\Context', $this->context); $this->testCase->assertEquals('PSX\\Controller\\Foo\\Application\\TestController::doInspect', $this->context->get(Context::KEY_SOURCE)); $this->testCase->assertInstanceOf('PSX\\Http\\Request', $this->request); $this->testCase->assertInstanceOf('PSX\\Http\\Response', $this->response); $this->testCase->assertTrue(is_array($this->uriFragments)); $this->testCase->assertInstanceOf('PSX\\Config', $this->config); $this->testCase->assertInstanceOf('PSX\\Validate', $this->validate); $this->testCase->assertInstanceOf('PSX\\Loader', $this->loader); $this->testCase->assertInstanceOf('PSX\\Loader\\ReverseRouter', $this->reverseRouter); $this->testCase->assertInstanceOf('PSX\\Data\\ReaderFactory', $this->readerFactory); $this->testCase->assertInstanceOf('PSX\\Data\\WriterFactory', $this->writerFactory); $this->testCase->assertInstanceOf('PSX\\Data\\Importer', $this->importer); $this->testCase->assertInstanceOf('PSX\\Data\\Extractor', $this->extractor); }