From ed01011dfb563e7d8ab13b6a0718eed7bf857880 Mon Sep 17 00:00:00 2001 From: Marcin Zelent Date: Fri, 16 Mar 2018 17:48:44 +0100 Subject: Moved PHP website to separate directory. --- .../AppBundle/Controller/DefaultControllerTest.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 pollutometer-php/tests/AppBundle/Controller/DefaultControllerTest.php (limited to 'pollutometer-php/tests/AppBundle/Controller/DefaultControllerTest.php') diff --git a/pollutometer-php/tests/AppBundle/Controller/DefaultControllerTest.php b/pollutometer-php/tests/AppBundle/Controller/DefaultControllerTest.php new file mode 100644 index 0000000..594803c --- /dev/null +++ b/pollutometer-php/tests/AppBundle/Controller/DefaultControllerTest.php @@ -0,0 +1,18 @@ +request('GET', '/'); + + $this->assertEquals(200, $client->getResponse()->getStatusCode()); + $this->assertContains('Welcome to Symfony', $crawler->filter('#container h1')->text()); + } +} -- cgit v1.2.3